Function at 0x46a7d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov edx, dword [0x4c1ad8]
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
shl edx, 4
push edi
mov esi, ebx
push edx
push 0x40
mov dword [esp + 0x1c], 1
and ebx, 0xffff
shr esi, 0x10
mov dword [esp + 0x20], ecx
call ebp
mov edi, eax
mov eax, dword [0x4c1ad8]
shl eax, 4
push eax
push 0x40
call ebp
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp dword [ecx], ebp
jne 0x46a840
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x14], ebp
jmp 0x46aaa9
mov edx, dword [esp + 0x74]
cmp edx, ebp
jne 0x46a854
mov dword [esp + 0x74], 0x4c1adc
mov edx, dword [esp + 0x74]
cmp ebx, 0xd
je 0x46a85e
cmp ebx, 0xb
jne 0x46a872
cmp esi, ebp
je 0x46aaa9
cmp esi, 0x100
jne 0x46a872
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
cmp ebp, ebx
mov esi, ebp
jl 0x46a882
mov esi, ebx
mov eax, dword [esp + 0x50]
cmp esi, eax
jl 0x46a88c
mov esi, eax
mov ecx, dword [esp + 0x64]
cmp esi, ecx
jl 0x46a896
mov esi, ecx
mov eax, ebp
cmp ebp, ebx
mov dword [esp + 0x28], eax
jg 0x46a8a6
mov dword [esp + 0x28], ebx
mov eax, ebx
cmp eax, dword [esp + 0x50]
jg 0x46a8b4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
cmp eax, ecx
jg 0x46a8be
mov dword [esp + 0x28], ecx
mov eax, ecx
mov ecx, dword [edx + 4]
cmp esi, ecx
jg 0x46a8c7
mov esi, ecx
mov ecx, dword [edx + 0xc]
dec ecx
cmp eax, ecx
jl 0x46a8d5
mov dword [esp + 0x28], ecx
mov eax, ecx
cmp esi, eax
jg 0x46a901
mov ecx, dword [esp + 0x10]
mov ebx, edi
sub eax, esi
sub ebx, ecx
inc eax
mov edx, dword [0x4c1ad4]
mov dword [ebx + ecx], edx
mov dword [ecx], 0
add ecx, 0x10
dec eax
jne 0x46a8e4
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push edi
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
sub ebx, esi
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x48]
sub ebp, esi
push eax
push ecx
push ebp
push edx
call fcn.00412ea0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0xa8]
push edi
push edx
mov edx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
sub eax, esi
push edx
mov edx, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], eax
push eax
mov eax, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push ebx
push eax
call fcn.00412ea0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0xb8]
add esp, 0x68
sub ebx, esi
push ecx
mov ecx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push ebx
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x88]
push eax
push ecx
push edx
call fcn.00412ea0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push edi
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push ebp
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa4]
push ecx
push edx
push ebx
push eax
call fcn.00412ea0
mov ecx, dword [esp + 0x80]
mov edx, esi
mov eax, dword [esp + 0x88]
imul edx, ecx
mov eax, dword [eax]
add esp, 0x68
lea ebx, [eax + edx*4]
mov eax, dword [esp + 0x28]
cmp esi, eax
jg 0x46aaa9
shl ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
sub eax, esi
sub ecx, edi
inc eax
mov ebp, edi
mov dword [esp + 0x50], ecx
mov esi, eax
jmp 0x46aa86
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push edx
add ecx, ebp
push eax
push ecx
push ebp
push ebx
call fcn.0046a150
mov ecx, dword [esp + 0x34]
add esp, 0x14
add ebp, 0x10
add ebx, ecx
dec esi
jne 0x46aa82
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x46aab6
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46aac1
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret