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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x50]
mov ecx, dword [0x4c1ad8]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, eax
and eax, 0xffff
shl ecx, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
shr esi, 0x10
push ecx
push 0x40
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
call edi
mov edx, dword [0x4c1ad8]
mov ebp, eax
shl edx, 4
push edx
push 0x40
call edi
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
xor edi, edi
mov ax, word [eax*2 + 0x4dce30]
or ax, word [ecx*2 + 0x66f578]
or ax, word [edx*2 + 0x66ef78]
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
cmp dword [ebx], edi
jne 0x45cd8c
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x18], edi
jmp 0x45d14a
mov edx, dword [esp + 0x50]
cmp edx, edi
jne 0x45cda0
mov dword [esp + 0x50], 0x4c1adc
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
cmp eax, 0xd
je 0x45cdae
cmp eax, 0xb
jne 0x45cdc2
cmp esi, edi
je 0x45d14a
cmp esi, 0x100
jne 0x45cdc2
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
mov edi, eax
jl 0x45cdd2
mov edi, ebx
mov ecx, dword [esp + 0x44]
cmp edi, ecx
jl 0x45cddc
mov edi, ecx
mov ecx, dword [esp + 0x4c]
cmp edi, ecx
jl 0x45cde6
mov edi, ecx
cmp eax, ebx
mov esi, eax
jg 0x45cdee
mov esi, ebx
cmp esi, dword [esp + 0x44]
jg 0x45cdf8
mov esi, dword [esp + 0x44]
cmp esi, ecx
jg 0x45cdfe
mov esi, ecx
mov ecx, dword [edx + 4]
cmp edi, ecx
jg 0x45ce07
mov edi, ecx
mov ecx, dword [edx + 0xc]
dec ecx
cmp esi, ecx
jl 0x45ce11
mov esi, ecx
cmp edi, esi
jg 0x45ce43
mov eax, dword [esp + 0x60]
mov ecx, esi
mov edx, ebp
sub ecx, edi
sub edx, eax
inc ecx
mov ebx, dword [0x4c1ad4]
mov dword [edx + eax], ebx
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x45ce22
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
sub ebx, edi
push ecx
push ebp
push edx
mov edx, dword [esp + 0x44]
sub eax, edi
push ebx
push edx
mov dword [esp + 0x50], eax
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00412d50
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x58]
sub eax, edi
push ebp
push edx
mov dword [esp + 0x5c], eax
push eax
mov eax, dword [esp + 0x74]
push eax
push ebx
push ecx
call fcn.00412d50
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x70]
sub ebx, edi
push ebp
push eax
mov eax, dword [esp + 0x8c]
push ebx
push ecx
push edx
push eax
call fcn.00412d50
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x90]
add esp, 0x54
push ecx
mov ecx, dword [esp + 0x34]
push ebp
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push ebx
push edx
call fcn.00412d50
mov eax, edi
mov ecx, dword [esp + 0x48]
imul eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add esp, 0x1c
lea ebx, [edx + eax*2]
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 0xa
ja case.0x45cf0d.5
xor ecx, ecx
mov cl, byte [eax + 0x45d184]
jmp dword [ecx*4 + 0x45d170]
mov edx, dword [esp + 0x1c]
mov eax, edx
mov ecx, edx
imul eax, dword [esp + 0x54]
imul ecx, dword [esp + 0x58]
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 + 0x5c]
sar ecx, 8
or ax, word [ecx*2 + 0x66ef78]
cmp edi, esi
mov word [esp + 0x26], ax
mov word [esp + 0x24], ax
mov word [esp + 0x22], ax
mov word [esp + 0x20], ax
jg 0x45d14a
mov eax, dword [esp + 0x10]
sub esi, edi
lea ecx, [eax + eax]
mov eax, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
sub ecx, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ecx
inc esi
jmp 0x45cf96
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x58]
add ecx, eax
push edx
push ecx
push eax
push ebx
call fcn.0045c4e0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
add esp, 0x18
add edx, 0x10
add ebx, ecx
dec esi
mov dword [esp + 0x5c], edx
jne 0x45cf8a
jmp 0x45d14a
cmp edi, esi
jg 0x45d14a
mov eax, dword [esp + 0x10]
sub esi, edi
lea ecx, [eax + eax]
mov eax, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
sub ecx, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ecx
inc esi
jmp 0x45cff7
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
add ecx, eax
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
push eax
push ebx
call fcn.0045c580
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
add esp, 0x18
add edx, 0x10
add ebx, ecx
dec esi
mov dword [esp + 0x5c], edx
jne 0x45cfef
jmp 0x45d14a
cmp edi, esi
jg 0x45d14a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
sub ecx, ebp
sub esi, edi
lea eax, [edx + edx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x5c], eax
inc esi
jmp 0x45d05c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x20]
add ecx, eax
push edx
mov edx, dword [esp + 0x54]
push edx
push ecx
push eax
push ebx
call fcn.0045c640
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x48]
add esp, 0x14
add edx, 0x10
add ebx, ecx
dec esi
mov dword [esp + 0x5c], edx
jne 0x45d054
jmp 0x45d14a
cmp edi, esi
jg 0x45d14a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
sub ecx, ebp
sub esi, edi
lea eax, [edx + edx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x3c], eax
inc esi
jmp 0x45d0bc
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
add ecx, eax
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push edx
push ecx
push eax
push ebx
call fcn.0045c730
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
add edx, 0x10
add ebx, ecx
dec esi
mov dword [esp + 0x3c], edx
jne 0x45d0b4
jmp 0x45d14a
cmp edi, esi
jg 0x45d14a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
sub ecx, ebp
sub esi, edi
lea eax, [edx + edx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x5c], eax
inc esi
jmp 0x45d11f
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x20]
add ecx, eax
push edx
mov edx, dword [esp + 0x54]
push edx
push ecx
push eax
push ebx
call fcn.0045c460
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x48]
add esp, 0x14
add edx, 0x10
add ebx, ecx
dec esi
mov dword [esp + 0x5c], edx
jne 0x45d117
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebp, ebp
je 0x45d157
push ebp
call esi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x45d162
push eax
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret