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

Disassembly:
sub esp, 0x28
mov edx, dword [0x4c1ad8]
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ecx, dword [eax + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x24], 1
mov ebp, edi
mov ebx, edi
shl edx, 4
shr ebp, 0x10
and ebx, 0xffff
push edx
push 0x40
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ecx
call esi
mov dword [esp + 0x7c], eax
mov eax, dword [0x4c1ad8]
shl eax, 4
push eax
push 0x40
call esi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov esi, eax
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
sub eax, edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
sub eax, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
sub eax, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
cmp eax, ecx
je 0x46922f
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
cmp ecx, eax
jne 0x468f16
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jne 0x468f16
cmp edx, dword [esp + 0x78]
je 0x46922f
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], 0
jne 0x468f39
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x24], 0
jmp 0x46920b
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x468f46
mov edi, 0x4c1adc
cmp ebx, 0xd
je 0x468f50
cmp ebx, 0xb
jne 0x468f58
test ebp, ebp
je 0x46920b
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x4c]
cmp edx, ebp
mov dword [esp + 0x58], edx
jl 0x468f6c
mov dword [esp + 0x58], ebp
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
cmp eax, ecx
jl 0x468f7c
mov dword [esp + 0x58], ecx
cmp edx, ebp
mov eax, edx
jg 0x468f84
mov eax, ebp
cmp eax, ecx
jg 0x468f8a
mov eax, ecx
mov ecx, dword [edi + 4]
mov ebx, dword [esp + 0x58]
cmp ebx, ecx
jg 0x468f99
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0xc]
dec ecx
cmp eax, ecx
jl 0x468fa3
mov eax, ecx
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x7c]
cmp ecx, eax
jg 0x468fd9
mov edx, dword [esp + 0x58]
mov ebp, ebx
sub eax, edx
sub ebp, esi
mov ecx, esi
inc eax
mov edx, dword [0x4c1ad4]
mov dword [ecx + ebp], edx
mov dword [ecx], 0
add ecx, 0x10
dec eax
jne 0x468fbc
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push esi
push ebx
push edi
push ebp
mov ebp, dword [esp + 0x58]
push ebp
push edx
push eax
call fcn.00412d50
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push esi
push ebx
push edi
push ecx
push edx
push eax
push ebp
call fcn.00412d50
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x8c]
push esi
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
call fcn.00412d50
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x90]
imul edx, eax
mov ecx, dword [ecx]
add esp, 0x54
lea edx, [ecx + edx*4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0xc]
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jge 0x46920b
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
shl eax, 2
mov dword [esp + 0x50], eax
mov eax, ecx
sub eax, esi
mov esi, ecx
mov ebp, eax
mov ebx, eax
imul eax, dword [esp + 0x14]
imul ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
imul ebx, dword [esp + 0x18]
sub esi, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
shl esi, 4
add esi, ecx
sub eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
push ecx
push edx
cdq
idiv dword [esp + 0x74]
add eax, dword [esp + 0x68]
push eax
call fcn.00493c40
mov byte [esp + 0x42], al
mov byte [esp + 0x3e], al
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
push eax
mov eax, ebx
cdq
idiv dword [esp + 0x7c]
push ecx
add eax, ecx
push eax
call fcn.00493c40
mov edx, dword [esp + 0x90]
mov byte [esp + 0x4d], al
mov byte [esp + 0x49], al
mov eax, dword [esp + 0x80]
push edx
push eax
mov eax, ebp
cdq
idiv dword [esp + 0x8c]
add eax, dword [esp + 0x88]
push eax
call fcn.00493c40
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x58], al
mov byte [esp + 0x54], al
add esp, 0x24
lea eax, [ecx - 1]
cmp eax, 0xc
ja case.0x46912e.6
xor edx, edx
mov dl, byte [eax + 0x46928c]
jmp dword [edx*4 + 0x469274]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x58]
push ecx
add edx, esi
push edi
push edx
push esi
push eax
call fcn.00468080
add esp, 0x18
jmp case.0x46912e.4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x58]
push edx
add eax, esi
push edi
push eax
push esi
push ecx
call fcn.004682a0
add esp, 0x18
jmp case.0x46912e.4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
add eax, esi
push edx
push edi
push eax
push esi
push ecx
call fcn.004683f0
jmp 0x4691c5
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
add eax, esi
push edx
push edi
push eax
push esi
push ecx
call fcn.00468500
jmp 0x4691c5
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
add eax, esi
push edx
push edi
push eax
push esi
push ecx
call fcn.00467fc0
add esp, 0x14
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x54]
add ebx, ecx
mov ecx, dword [esp + 0x50]
inc eax
add edx, ecx
mov ecx, dword [edi + 0xc]
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], edx
jl 0x46909b
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x46921c
push eax
call edi
test esi, esi
je 0x469223
push esi
call edi
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
push edi
push edx
mov edx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
call fcn.004685a0
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret