Function at 0x45ecc0
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 + 8]
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 0x45ed30
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x14], ebp
jmp 0x45ef98
mov edx, dword [esp + 0x74]
cmp edx, ebp
jne 0x45ed44
mov dword [esp + 0x74], 0x4c1adc
mov edx, dword [esp + 0x74]
cmp ebx, 0xd
je 0x45ed4e
cmp ebx, 0xb
jne 0x45ed62
cmp esi, ebp
je 0x45ef98
cmp esi, 0x100
jne 0x45ed62
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
cmp ebp, ebx
mov esi, ebp
jl 0x45ed72
mov esi, ebx
mov eax, dword [esp + 0x50]
cmp esi, eax
jl 0x45ed7c
mov esi, eax
mov ecx, dword [esp + 0x64]
cmp esi, ecx
jl 0x45ed86
mov esi, ecx
mov eax, ebp
cmp ebp, ebx
mov dword [esp + 0x28], eax
jg 0x45ed96
mov dword [esp + 0x28], ebx
mov eax, ebx
cmp eax, dword [esp + 0x50]
jg 0x45eda4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
cmp eax, ecx
jg 0x45edae
mov dword [esp + 0x28], ecx
mov eax, ecx
mov ecx, dword [edx + 4]
cmp esi, ecx
jg 0x45edb7
mov esi, ecx
mov ecx, dword [edx + 0xc]
dec ecx
cmp eax, ecx
jl 0x45edc5
mov dword [esp + 0x28], ecx
mov eax, ecx
cmp esi, eax
jg 0x45edf1
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 0x45edd4
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*2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jg 0x45ef98
add ecx, ecx
sub eax, esi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
sub ecx, edi
inc eax
mov ebp, edi
mov dword [esp + 0x50], ecx
mov esi, eax
jmp 0x45ef75
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.0045e670
mov ecx, dword [esp + 0x34]
add esp, 0x14
add ebp, 0x10
add ebx, ecx
dec esi
jne 0x45ef71
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x45efa5
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45efb0
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret