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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x48]
mov ecx, dword [0x4c1ad8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, eax
and eax, 0xffff
shl ecx, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
shr esi, 0x10
push ecx
push 0x40
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
call ebp
mov edx, dword [0x4c1ad8]
mov ebx, eax
shl edx, 4
push edx
push 0x40
call ebp
mov cl, byte [esp + 0x50]
mov dl, byte [esp + 0x4c]
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x54]
mov byte [esp + 0x20], al
mov byte [esp + 0x24], al
mov eax, dword [edi]
mov byte [esp + 0x21], cl
test eax, eax
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], 0
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0
jne 0x468646
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x18], 0
jmp case.0x46877e.4
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x46865a
mov dword [esp + 0x48], 0x4c1adc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cmp eax, 0xd
je 0x468668
cmp eax, 0xb
jne 0x468670
test esi, esi
je case.0x46877e.4
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
cmp eax, edi
mov ebp, eax
jl 0x468680
mov ebp, edi
mov ecx, dword [esp + 0x44]
cmp ebp, ecx
jl 0x46868a
mov ebp, ecx
cmp eax, edi
mov esi, eax
jg 0x468692
mov esi, edi
cmp esi, ecx
jg 0x468698
mov esi, ecx
mov ecx, dword [edx + 4]
cmp ebp, ecx
jg 0x4686a1
mov ebp, ecx
mov ecx, dword [edx + 0xc]
dec ecx
cmp esi, ecx
jl 0x4686ab
mov esi, ecx
cmp ebp, esi
jg 0x4686dd
mov ecx, dword [esp + 0x58]
mov eax, esi
mov edx, ebx
sub eax, ebp
sub edx, ecx
inc eax
mov edi, dword [0x4c1ad4]
mov dword [edx + ecx], edi
mov dword [ecx], 0
add ecx, 0x10
dec eax
jne 0x4686bc
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
sub edi, ebp
push ecx
push ebx
push edx
mov edx, dword [esp + 0x44]
sub eax, ebp
push edi
push edx
mov dword [esp + 0x50], eax
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00412d50
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x58]
sub eax, ebp
push ebx
push edx
mov dword [esp + 0x5c], eax
push eax
mov eax, dword [esp + 0x6c]
push eax
push edi
push ecx
call fcn.00412d50
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x6c]
push ebx
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
call fcn.00412d50
mov edx, ebp
mov eax, dword [esp + 0x80]
imul edx, dword [esp + 0x64]
mov ecx, dword [eax]
add esp, 0x54
lea edi, [ecx + edx*4]
mov edx, dword [esp + 0x14]
lea eax, [edx - 1]
cmp eax, 0xc
ja case.0x46877e.6
xor ecx, ecx
mov cl, byte [eax + 0x4689b4]
jmp dword [ecx*4 + 0x46899c]
cmp ebp, esi
jg case.0x46877e.4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
sub ecx, ebx
sub esi, ebp
lea eax, [edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0x44], eax
inc esi
jmp 0x4687b9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
add ecx, eax
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x50]
push edx
push ecx
push eax
push edi
call fcn.00468080
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
add esp, 0x18
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x44], edx
jne 0x4687b1
jmp case.0x46877e.4
cmp ebp, esi
jg case.0x46877e.4
mov eax, dword [esp + 0x10]
sub esi, ebp
lea ecx, [eax*4]
mov eax, ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x58]
sub ecx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
inc esi
jmp 0x468822
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add ecx, eax
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x50]
push edx
push ecx
push eax
push edi
call fcn.004682a0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
add esp, 0x18
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x44], edx
jne 0x46881a
jmp case.0x46877e.4
cmp ebp, esi
jg case.0x46877e.4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
sub ecx, ebx
sub esi, ebp
lea eax, [edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0x44], eax
inc esi
jmp 0x46888b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x20]
add ecx, eax
push edx
mov edx, dword [esp + 0x4c]
push edx
push ecx
push eax
push edi
call fcn.004683f0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
add esp, 0x14
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x44], edx
jne 0x468883
jmp case.0x46877e.4
cmp ebp, esi
jg case.0x46877e.4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
sub ecx, ebx
sub esi, ebp
lea eax, [edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0x44], eax
inc esi
jmp 0x4688ef
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x20]
add ecx, eax
push edx
mov edx, dword [esp + 0x4c]
push edx
push ecx
push eax
push edi
call fcn.00468500
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
add esp, 0x14
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x44], edx
jne 0x4688e7
jmp case.0x46877e.4
cmp ebp, esi
jg case.0x46877e.4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
sub ecx, ebx
sub esi, ebp
lea eax, [edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0x44], eax
inc esi
jmp 0x46894c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x20]
add ecx, eax
push edx
mov edx, dword [esp + 0x4c]
push edx
push ecx
push eax
push edi
call fcn.00467fc0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
add esp, 0x14
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x44], edx
jne 0x468944
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x468984
push ebx
call esi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x46898f
push eax
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret