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

Disassembly:
sub esp, 0x24
mov edx, dword [0x4c1ad8]
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov ecx, dword [eax + 8]
push esi
mov ebx, ebp
mov esi, ebp
push edi
shl edx, 4
shr ebx, 0x10
and esi, 0xffff
push edx
push 0x40
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x4c1ad8]
shl eax, 4
push eax
push 0x40
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
sub eax, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
sub eax, edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
cmp eax, ecx
je 0x45d5f0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jne 0x45d258
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jne 0x45d258
cmp edx, dword [esp + 0x74]
je 0x45d5f0
mov ecx, dword [esp + 0x38]
xor ebp, ebp
cmp dword [ecx], ebp
jne 0x45d278
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x45d5cc
mov edx, dword [esp + 0x54]
cmp edx, ebp
jne 0x45d28c
mov dword [esp + 0x54], 0x4c1adc
mov edx, dword [esp + 0x54]
cmp esi, 0xd
je 0x45d296
cmp esi, 0xb
jne 0x45d2aa
cmp ebx, ebp
je 0x45d5cc
cmp ebx, 0x100
jne 0x45d2aa
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
cmp eax, ebp
mov esi, eax
jl 0x45d2ba
mov esi, ebp
mov ecx, dword [esp + 0x50]
cmp esi, ecx
jl 0x45d2c4
mov esi, ecx
cmp eax, ebp
mov ebx, eax
jg 0x45d2cc
mov ebx, ebp
cmp ebx, ecx
jg 0x45d2d2
mov ebx, ecx
mov ecx, dword [edx + 4]
cmp esi, ecx
jg 0x45d2db
mov esi, ecx
mov ecx, dword [edx + 0xc]
dec ecx
cmp ebx, ecx
jl 0x45d2e5
mov ebx, ecx
cmp esi, ebx
jg 0x45d317
mov ecx, dword [esp + 0x78]
mov eax, ebx
mov edx, edi
sub eax, esi
sub edx, ecx
inc eax
mov ebp, dword [0x4c1ad4]
mov dword [edx + ecx], ebp
mov dword [ecx], 0
add ecx, 0x10
dec eax
jne 0x45d2f6
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
sub ebp, esi
push ecx
push edi
push edx
mov edx, dword [esp + 0x50]
sub eax, esi
push ebp
push edx
mov dword [esp + 0x5c], eax
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.00412d50
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x64]
sub eax, esi
push edi
push edx
mov dword [esp + 0x78], eax
push eax
mov eax, dword [esp + 0x78]
push eax
push ebp
push ecx
call fcn.00412d50
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x78]
push edi
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x94]
push edx
push eax
push ecx
call fcn.00412d50
mov eax, dword [esp + 0x7c]
mov edx, esi
mov ecx, dword [esp + 0x8c]
imul edx, eax
mov ecx, dword [ecx]
add esp, 0x54
cmp esi, ebx
lea edx, [ecx + edx*2]
mov dword [esp + 0x38], edx
jg 0x45d5cc
mov ebp, dword [esp + 0x58]
add eax, eax
mov dword [esp + 0x40], eax
mov eax, esi
sub eax, ebp
mov edx, dword [esp + 0x20]
mov ecx, eax
mov ebp, eax
imul eax, dword [esp + 0x68]
imul ecx, dword [esp + 0x1c]
imul ebp, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
sub ebx, esi
sub eax, edx
inc ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
cdq
idiv esi
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x60]
push ecx
add eax, ecx
push eax
call fcn.00493c40
mov edx, dword [esp + 0x7c]
mov ebx, eax
mov eax, ebp
push edx
cdq
idiv esi
mov ecx, dword [esp + 0x70]
push ecx
add eax, ecx
push eax
call fcn.00493c40
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x64]
cdq
idiv esi
mov ecx, dword [esp + 0x80]
push ecx
add eax, ecx
push eax
call fcn.00493c40
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp ecx, 0xb
jne 0x45d492
mov ecx, eax
imul edx, esi
imul ecx, esi
sar ecx, 8
sar edx, 8
mov cx, word [ecx*2 + 0x66ef78]
or cx, word [edx*2 + 0x66f578]
mov edx, ebx
imul edx, esi
sar edx, 8
or cx, word [edx*2 + 0x4dce30]
jmp 0x45d4aa
mov cx, word [eax*2 + 0x66ef78]
or cx, word [edx*2 + 0x66f578]
or cx, word [ebx*2 + 0x4dce30]
mov word [esp + 0x2e], cx
mov word [esp + 0x2c], cx
mov word [esp + 0x2a], cx
mov word [esp + 0x28], cx
mov ecx, dword [esp + 0x10]
dec ecx
cmp ecx, 0xa
ja case.0x45d4d4.5
xor edx, edx
mov dl, byte [ecx + 0x45d648]
jmp dword [edx*4 + 0x45d634]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x28]
push esi
push eax
mov eax, dword [esp + 0x40]
add edx, edi
push ecx
push edx
push edi
push eax
call fcn.0045c4e0
add esp, 0x18
jmp 0x45d586
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x2c]
add ecx, edi
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edi
push edx
call fcn.0045c580
add esp, 0x18
jmp 0x45d586
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x28]
add edx, edi
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push edi
push eax
call fcn.0045c640
jmp 0x45d583
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x40]
push ebx
add eax, edi
push edx
push eax
push edi
push ecx
call fcn.0045c730
add esp, 0x1c
jmp 0x45d586
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x28]
add ecx, edi
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edi
push edx
call fcn.0045c460
add esp, 0x14
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
add ebp, ebx
add esi, ecx
mov ecx, dword [esp + 0x38]
add edi, 0x10
add ecx, edx
dec eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
jne 0x45d3f5
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x45d5d9
push edi
call esi
mov eax, dword [esp + 0x78]
test eax, eax
je 0x45d5e4
push eax
call esi
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push ebp
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call fcn.0045c870
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret