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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x4c1ad8]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, eax
and eax, 0xffff
shl ecx, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp + 8]
shr esi, 0x10
push ecx
push 0x40
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [0x4c1ad8]
mov dword [esp + 0x5c], eax
shl edx, 4
push edx
push 0x40
call edi
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
xor edi, edi
mov ax, word [eax*2 + 0x4dce30]
or ax, word [ecx*2 + 0x66f578]
or ax, word [edx*2 + 0x66ef78]
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
cmp dword [ebp], edi
jne 0x45c921
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x45cc89
mov ebp, dword [esp + 0x4c]
cmp ebp, edi
jne 0x45c92e
mov ebp, 0x4c1adc
cmp ebx, 0xd
je 0x45c938
cmp ebx, 0xb
jne 0x45c94c
cmp esi, edi
je 0x45cc89
cmp esi, 0x100
jne 0x45c94c
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
cmp eax, edi
mov ebx, eax
jl 0x45c95c
mov ebx, edi
mov ecx, dword [esp + 0x48]
cmp ebx, ecx
jl 0x45c966
mov ebx, ecx
cmp eax, edi
mov esi, eax
jg 0x45c96e
mov esi, edi
cmp esi, ecx
jg 0x45c974
mov esi, ecx
mov ecx, dword [ebp + 4]
cmp ebx, ecx
jg 0x45c97d
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
dec ecx
cmp esi, ecx
jl 0x45c987
mov esi, ecx
cmp ebx, esi
jg 0x45c9b4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
mov ecx, esi
sub edx, eax
sub ecx, ebx
inc ecx
mov edi, dword [ebp + 8]
mov dword [edx + eax], edi
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x45c99a
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x40]
sub edi, ebx
push edx
mov edx, dword [esp + 0x3c]
push ebp
sub eax, ebx
push edi
push ecx
push eax
push edx
mov dword [esp + 0x5c], eax
call fcn.00412d50
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x5c]
sub eax, ebx
push edx
push ebp
mov dword [esp + 0x60], eax
push eax
mov eax, dword [esp + 0x70]
push eax
push edi
push ecx
call fcn.00412d50
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
push ebp
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
call fcn.00412d50
mov edx, ebx
mov eax, dword [esp + 0x84]
imul edx, dword [esp + 0x68]
mov ecx, dword [eax]
add esp, 0x54
lea edi, [ecx + edx*2]
mov edx, dword [esp + 0x18]
lea eax, [edx - 1]
cmp eax, 0xa
ja case.0x45ca56.5
xor ecx, ecx
mov cl, byte [eax + 0x45ccc8]
jmp dword [ecx*4 + 0x45ccb4]
mov edx, dword [esp + 0x20]
mov eax, edx
mov ecx, edx
imul eax, dword [esp + 0x50]
imul ecx, dword [esp + 0x54]
sar eax, 8
sar ecx, 8
mov ax, word [eax*2 + 0x4dce30]
or ax, word [ecx*2 + 0x66f578]
mov ecx, edx
imul ecx, dword [esp + 0x58]
sar ecx, 8
or ax, word [ecx*2 + 0x66ef78]
cmp ebx, esi
mov word [esp + 0x2a], ax
mov word [esp + 0x28], ax
mov word [esp + 0x26], ax
mov word [esp + 0x24], ax
jg 0x45cc89
mov eax, dword [esp + 0x14]
sub esi, ebx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
inc esi
jmp 0x45cae1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
push edx
lea edx, [esp + 0x28]
push edx
add ecx, eax
push ebp
push ecx
push eax
push edi
call fcn.0045c4e0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x50]
add esp, 0x18
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x58], edx
jne 0x45cad5
jmp 0x45cc89
cmp ebx, esi
jg 0x45cc89
mov eax, dword [esp + 0x14]
sub esi, ebx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
inc esi
jmp 0x45cb40
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
add ecx, eax
push edx
lea edx, [esp + 0x28]
push edx
push ebp
push ecx
push eax
push edi
call fcn.0045c580
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x50]
add esp, 0x18
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x58], edx
jne 0x45cb38
jmp 0x45cc89
cmp ebx, esi
jg 0x45cc89
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub esi, ebx
lea eax, [edx + edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
inc esi
jmp 0x45cba3
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x24]
add ecx, eax
push edx
push ebp
push ecx
push eax
push edi
call fcn.0045c640
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x58], edx
jne 0x45cb9b
jmp 0x45cc89
cmp ebx, esi
jg 0x45cc89
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub esi, ebx
lea eax, [edx + edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
inc esi
jmp 0x45cc01
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
add ecx, eax
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
push ebp
push ecx
push eax
push edi
call fcn.0045c730
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x48], edx
jne 0x45cbf9
jmp 0x45cc89
cmp ebx, esi
jg 0x45cc89
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub esi, ebx
lea eax, [edx + edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
inc esi
jmp 0x45cc62
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x24]
add ecx, eax
push edx
push ebp
push ecx
push eax
push edi
call fcn.0045c460
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
add edx, 0x10
add edi, ecx
dec esi
mov dword [esp + 0x58], edx
jne 0x45cc5a
mov eax, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x45cc9a
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45cca5
push eax
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret