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

Disassembly:
sub esp, 0xdc
push ebx
push ebp
mov edx, 0x28
push esi
mov ebp, 2
push edi
mov edi, 4
mov ebx, 8
mov esi, 0x14
mov dword [esp + 0x6c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xd0], edx
mov edx, dword [ecx + 0x9c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], edi
mov ebp, 0xc8
mov dword [esp + 0xe0], edi
xor edi, edi
xor eax, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x70], pe_nt_image_headers32
mov dword [esp + 0x74], 0xa0
mov dword [esp + 0x78], 0xa0
mov dword [esp + 0x7c], pe_nt_image_headers32
mov dword [esp + 0x84], 0x20
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], 0x10
mov dword [esp + 0x90], ebx
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], 0x19
mov dword [esp + 0xb8], 0x32
mov dword [esp + 0xbc], 0x64
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], 0x64
mov dword [esp + 0xcc], 0x32
mov dword [esp + 0xd4], 0x19
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe4], 2
mov dword [esp + 0xe8], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
cmp edx, 0x280
jne 0x416845
mov esi, dword [ecx + 0x14c]
mov edi, dword [esp + esi*4 + 0x54]
mov dword [esp + 0x44], edi
cmp edx, 0x320
jne 0x41685e
mov edx, dword [ecx + 0x14c]
mov edi, dword [esp + edx*4 + 0xa0]
mov dword [esp + 0x44], edi
mov ebp, edi
imul ebp, edi
cmp dword [ecx + 0x14c], ebx
mov dword [esp + 0x2c], ebp
jg 0x416877
mov edx, dword [ecx + 0x140]
jmp 0x41687d
mov edx, dword [ecx + 0x13c]
mov esi, dword [edx + 0xa0]
cmp edi, 1
je 0x416a68
xor ebx, ebx
cmp dword [ecx + 0xa0], ebx
mov dword [esp + 0x24], ebx
jle 0x416ab9
mov edi, edi
xor eax, eax
cmp dword [ecx + 0x9c], ebx
mov dword [esp + 0x34], eax
jle 0x416a50
cmp edi, ebx
jle 0x4169a2
mov edx, dword [ecx + 0x9c]
lea ebp, [edx + edx*2]
imul edx, dword [esp + 0x24]
add edx, eax
lea edx, [edx + edx*2]
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], edi
xor eax, eax
cmp edi, 2
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
jl 0x416943
add edi, 0xfffffffe
shr edi, 1
inc edi
lea eax, [edi + edi]
mov dword [esp + 0x50], eax
lea ecx, [ecx]
movzx eax, byte [esi + edx]
add ebx, eax
movzx eax, byte [esi + edx + 1]
add dword [esp + 0x38], eax
movzx eax, byte [esi + edx + 2]
add dword [esp + 0x3c], eax
movzx eax, byte [esi + edx + 3]
add dword [esp + 0x30], eax
movzx eax, byte [esi + edx + 4]
add dword [esp + 0x28], eax
movzx eax, byte [esi + edx + 5]
add dword [esp + 0x40], eax
add edx, 6
sub edi, 1
jne 0x416900
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
cmp eax, edi
jge 0x416961
movzx eax, byte [esi + edx]
add dword [esp + 0x14], eax
movzx eax, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
add dword [esp + 0x1c], eax
add dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add eax, edx
add dword [esp + 0x18], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add eax, edx
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
add eax, ebx
add dword [esp + 0x14], eax
add edx, ebp
xor ebx, ebx
sub dword [esp + 0x20], 1
mov dword [esp + 0x48], edx
jne 0x4168d5
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cdq
idiv ebp
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x1c]
cdq
idiv ebp
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x18]
cdq
idiv ebp
xor edx, edx
cmp edi, ebx
mov dword [esp + 0x20], edx
mov byte [esp + 0x13], al
jle 0x416a2a
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
add edx, eax
imul edx, dword [ecx + 0x9c]
add edx, dword [esp + 0x34]
mov ebp, edi
lea edx, [edx + edx*2]
jmp 0x4169f0
mov eax, dword [ecx + 0x68]
movzx ebx, byte [esp + 0x12]
mov byte [edx + eax], bl
movzx ebx, byte [esp + 0x11]
mov eax, dword [ecx + 0x68]
mov byte [eax + edx + 1], bl
movzx ebx, byte [esp + 0x13]
mov eax, dword [ecx + 0x68]
mov byte [eax + edx + 2], bl
add edx, 3
sub ebp, 1
jne 0x4169f0
mov edx, dword [esp + 0x20]
inc edx
cmp edx, edi
mov dword [esp + 0x20], edx
jl 0x4169d0
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
add eax, edi
cmp eax, dword [ecx + 0x9c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], eax
jl 0x4168b2
mov eax, dword [esp + 0x24]
add eax, edi
cmp eax, dword [ecx + 0xa0]
mov dword [esp + 0x24], eax
jl 0x4168a0
jmp 0x416ab9
xor ebp, ebp
cmp dword [ecx + 0xa0], eax
jle 0x416ab7
xor edi, edi
cmp dword [ecx + 0x9c], edi
jle 0x416aae
lea esp, [esp]
movzx ebx, byte [esi + eax]
mov edx, dword [ecx + 0x68]
mov byte [eax + edx], bl
movzx ebx, byte [esi + eax + 1]
mov edx, dword [ecx + 0x68]
mov byte [edx + eax + 1], bl
movzx ebx, byte [esi + eax + 2]
mov edx, dword [ecx + 0x68]
mov byte [edx + eax + 2], bl
inc edi
add eax, 3
cmp edi, dword [ecx + 0x9c]
jl 0x416a80
inc ebp
cmp ebp, dword [ecx + 0xa0]
jl 0x416a72
xor ebx, ebx
inc dword [ecx + 0x14c]
mov eax, dword [ecx + 0x14c]
cmp eax, dword [ecx + 0x150]
jne 0x416b15
mov dword [ecx + 0x134], ebx
mov dword [ecx + 0xb3c], ebx
mov dword [ecx + 0xb40], ebx
mov dword [ecx + 0xb44], ebx
mov dword [ecx + 0xb48], ebx
mov dword [ecx + 0xb4c], ebx
mov dword [ecx + 0xb50], ebx
mov dword [ecx + 0xb54], ebx
mov dword [ecx + 0xb58], ebx
mov dword [ecx + 0xb5c], ebx
mov dword [ecx + 0xb60], ebx
mov dword [ecx + 0xb64], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret