Function at 0x48582e5c
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4858c870]
cmp eax, 0x10
jb 0x48582e8a
push eax
push 0x4858132c
push 3
push 1
call sub.ntdll.dll_DbgPrintEx
add esp, 0x10
mov eax, 0xc0000097
jmp 0x48583121
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0x48581300
push 3
push 1
call sub.ntdll.dll_DbgPrintEx
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
call fcn.485863ba
mov esi, eax
cmp esi, ebx
jge 0x48582f0c
xor eax, eax
mov ecx, 0x4858c644
inc eax
lock xadd dword [ecx], eax
inc eax
push 0x20
pop ecx
cdq
idiv ecx
push esi
push edi
push 0x485812c0
push 3
push 1
mov eax, edx
shl eax, 4
mov dword [eax + 0x4858c660], 0x12b
mov dword [eax + 0x4858c664], esi
mov dword [eax + 0x4858c668], 0x485812a4
mov dword [eax + 0x4858c66c], edi
call sub.ntdll.dll_DbgPrintEx
add esp, 0x14
mov eax, esi
jmp 0x4858311e
mov edx, dword [ebp - 0x14]
cmp edx, ebx
mov byte [0x4858c884], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x48582f4d
mov si, word [ebp - 0x18]
xor ecx, ecx
shr si, 1
je 0x48582f4d
movzx eax, cx
mov ax, word [edx + eax*2]
cmp ax, 0x20
je 0x48582f47
cmp ax, 9
je 0x48582f47
cmp ax, 0x30
jne 0x48582f8d
inc ecx
cmp cx, si
jb 0x48582f2e
mov byte [ebp - 1], 1
mov edi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [ebp - 0x18]
push eax
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x40
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x48583063
lea eax, [ebp - 0x20]
push eax
call edi
mov eax, 0xc0000017
jmp 0x4858311e
mov esi, dword [sym.imp.ntdll.dll_RtlUnicodeStringToInteger]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
mov edi, eax
cmp edi, ebx
jge 0x48582ff1
xor eax, eax
mov ecx, 0x4858c644
inc eax
lock xadd dword [ecx], eax
inc eax
cdq
push 0x20
pop ecx
idiv ecx
mov eax, edx
shl eax, 4
mov dword [eax + 0x4858c660], 0x170
mov esi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [eax + 0x4858c664], edi
mov dword [eax + 0x4858c668], ebx
mov dword [eax + 0x4858c66c], ebx
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, edi
jmp 0x4858311e
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
mov dword [ebp - 0x10], eax
mov ecx, eax
je 0x48582f51
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0x20
je 0x48583017
cmp word [ecx], bx
jne 0x48583002
jmp 0x48582f51
sub eax, ecx
add word [ebp - 0x18], ax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], ecx
call esi
mov edi, eax
cmp edi, ebx
jge 0x48583058
xor eax, eax
mov ecx, 0x4858c644
inc eax
lock xadd dword [ecx], eax
inc eax
cdq
push 0x20
pop ecx
idiv ecx
mov eax, edx
shl eax, 4
mov dword [eax + 0x4858c660], 0x186
jmp 0x48582fc6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x48582f51
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x20]
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 8]
mov ecx, 0x100000
mov edx, ecx
mul edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [ebp - 0xc]
mul ecx
mov dword [esi + 0x20], eax
movzx eax, byte [ebp - 1]
shl eax, 2
xor eax, dword [esi + 0x38]
mov dword [esi + 0x24], edx
and eax, 4
xor dword [esi + 0x38], eax
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov ecx, dword [esi + 0xc]
mov word [ecx + 8], ax
mov eax, dword [esi + 0xc]
cmp word [eax + 8], 0x3f
jne 0x485830cf
or dword [esi + 0x38], 0x10
mov eax, dword [0x4858c878]
mov ecx, 0x4858c878
jmp 0x485830eb
mov edx, eax
test byte [edx + 0x38], 0x10
mov eax, dword [eax]
je 0x485830eb
test byte [esi + 0x38], 0x10
jne 0x48583125
cmp eax, ecx
jne 0x485830db
mov eax, dword [0x4858c87c]
push edi
push dword [ebp + 8]
mov dword [esi], ecx
push 0x48581270
mov dword [esi + 4], eax
mov dword [eax], esi
inc dword [0x4858c870]
push 3
push 1
mov dword [0x4858c87c], esi
call sub.ntdll.dll_DbgPrintEx
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp + 8]
push 0x4858123c
push 3
push 1
call sub.ntdll.dll_DbgPrintEx
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc000000d
jmp 0x4858311e