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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x18]
test ebx, ebx
mov dword [esp + 0x2c], edx
jns 0x416244
xor edi, edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0xadabac08
test eax, eax
jle 0x416220
mov ebp, dword [esp + 0x78]
xor ebx, ebx
mov edx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
not ebp
shr ebp, 0x1f
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], ebp
jmp 0x41611d
add ebx, 1
cmp dword [esp + 0x2c], ebx
jle 0x416220
test edx, edx
mov esi, ebx
je 0x416126
mov esi, dword [edx + ebx*4]
mov eax, dword [ecx + 0x1c]
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0x74]
mov ebp, dword [edi + 8]
cmp dword [ebp + 8], eax
jne 0x416110
cmp esi, dword [esp + 0x78]
je 0x416146
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x416110
test dword [edi + 0x48], 0x180
jne 0x416110
mov eax, dword [esp + 0x80]
test eax, eax
je 0x416170
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x38], eax
je 0x4162f4
mov edi, dword [edi + 0xe8]
mov ebp, dword [ebp + 0x48]
mov eax, dword [esp + 0x40]
cmp edi, 5
mov dword [esp + 0x20], ebp
mov ebp, 5
cmovle ebp, edi
cmp ebp, eax
mov dword [esp + 0x1c], ebp
jl 0x416110
cmp dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x20]
sete al
cmp dword [esp + 0x44], ebp
jle 0x4161b1
test al, al
jne 0x416110
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x44], ebp
jne 0x4161c3
test al, al
jne 0x4162b0
test edx, edx
je 0x4162bf
mov ebp, esi
shr ebp, 0x1f
mov eax, ebp
test al, al
je 0x4162bf
mov ebp, dword [esp + 0x2c]
sub ebp, 1
cmp ebp, ebx
jne 0x4162bf
mov edx, dword [ecx + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edx
xor edx, edx
jmp 0x416113
mov edi, dword [esp + 0x80]
test edi, edi
je 0x416238
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x80]
mov dword [edx], ebp
mov eax, dword [esp + 0x34]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
shr eax, 0x1f
test al, al
je 0x4160be
mov esi, dword [ecx + 0x450]
xor edi, edi
test esi, esi
je 0x4160c0
mov ebp, dword [ecx + 0x454]
xor eax, eax
xor edx, edx
mov dword [esp + 0x30], ecx
mov ecx, esi
mov eax, dword [ebp + eax*4]
test eax, eax
je 0x41629c
mov esi, dword [eax + 0x10]
test esi, esi
je 0x41629c
mov edi, dword [eax + 0xc]
cmp dword [edi], ebx
je 0x4162e7
xor eax, eax
jmp 0x416295
cmp dword [edi + eax*4], ebx
je 0x4162e7
add eax, 1
cmp eax, esi
jne 0x416290
add edx, 1
cmp edx, ecx
mov eax, edx
jne 0x416273
mov ecx, dword [esp + 0x30]
xor edi, edi
jmp 0x4160c0
cmp edi, dword [esp + 0x48]
jg 0x4161c3
jmp 0x416110
mov eax, dword [esp + 0x38]
add ebx, 1
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], eax
jmp 0x416113
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
jmp 0x4160c0
cmp dword [esp + 0x74], 1
je 0x416374
cmp dword [esp + 0x74], 3
je 0x416360
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x41631c
mov eax, dword [ecx + 0x504]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x416170
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.004561f0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x416170
mov ebp, dword [esp + 0x34]
add ebx, 1
test ebp, ebp
jns 0x416113
mov dword [esp + 0x34], 0xbcbabb08
jmp 0x416113
mov eax, dword [ecx + 0x50c]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x416170
jmp 0x41631c
mov eax, dword [ecx + 0x508]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x416170
jmp 0x41631c