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

Disassembly:
push 0xffffffffffffffff
push 0x507108
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
cmp dword [ecx + 8], ebx
mov dword [esp + 0x14], ebx
jle 0x416838
mov esi, dword [esp + 0x74]
mov eax, ecx
mov eax, dword [eax]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 0x10], 0
mov ebp, dword [esp + 0x78]
jne 0x4167c6
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
test eax, eax
je 0x4163e5
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov edx, dword [edi]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0x50]
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x34]
mov ecx, edi
call eax
test eax, eax
je 0x41623a
push ebp
push esi
mov ecx, eax
call fcn.004161a0
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [ecx + 8]
jge 0x416838
mov edx, ecx
mov eax, dword [edx]
mov edi, dword [eax + ebx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 7
jne 0x416274
mov ecx, dword [esi]
mov eax, dword [esp + 0x74]
sub ecx, dword [eax]
mov dword [esp + 0x6c], 0xffffffff
mov dword [eax], ecx
jmp 0x4167c6
mov eax, dword [esi]
inc eax
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.00404770
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4], edx
mov ecx, dword [esi]
mov byte [ecx], 0xe9
mov eax, dword [esi]
lea edx, [eax + 5]
mov dword [eax + 1], edx
add dword [esi], 5
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
inc ebp
mov ecx, edi
mov dword [esp + 0x30], ebp
call edx
cmp eax, 0x3d
jne 0x416347
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [esp + 0x74]
sub ecx, dword [eax]
push esi
mov dword [eax], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x34]
mov ecx, edi
call eax
test eax, eax
je 0x4162f2
mov ecx, dword [esp + 0x78]
push ecx
push esi
mov ecx, eax
call fcn.004161a0
mov edi, dword [esi]
inc ebp
push ebp
lea ecx, [esp + 0x2c]
inc edi
call fcn.00404770
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [edx + ebp*4], edi
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
mov byte [eax], 0xe9
mov eax, dword [esi]
lea ecx, [eax + 5]
mov dword [eax + 1], ecx
add dword [esi], 5
inc ebp
inc ebx
cmp ebx, dword [edx + 8]
mov dword [esp + 0x30], ebp
jge 0x4167de
mov eax, edx
mov ecx, dword [eax]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 0x3d
je 0x4162c0
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 6
jne 0x41638e
mov ecx, dword [esi]
mov eax, dword [esp + 0x74]
sub ecx, dword [eax]
mov dword [eax], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
mov ecx, edi
call eax
test eax, eax
je 0x416379
mov ecx, dword [esp + 0x78]
push ecx
push esi
mov ecx, eax
call fcn.004161a0
mov edx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [edx + 8]
jge 0x4167de
mov eax, edx
mov ecx, dword [eax]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 7
jne 0x4167de
mov edx, dword [esp + 0x28]
xor eax, eax
test ebp, ebp
jbe 0x4163be
lea ebx, [ebx]
mov ecx, dword [edx + eax*4]
mov edi, dword [esi]
sub edi, dword [ecx]
inc eax
mov dword [ecx], edi
cmp eax, ebp
jb 0x4163b0
inc ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x6c], 0xffffffff
test edx, edx
je 0x4167cb
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004ae2c3
add esp, 4
jmp 0x4167cb
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
add eax, 0xfffffff8
cmp eax, 0x34
ja case.0x416401.9
movzx ecx, byte [eax + 0x416874]
jmp dword [ecx*4 + 0x416850]
push ebp
lea edx, [esp + 0x20]
push edx
push esi
mov ecx, edi
mov dword [esp + 0x20], edi
call fcn.00431590
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x6c], 1
cmp eax, ecx
je 0x416446
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x38]
call fcn.00404fd0
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], ecx
mov dword [esp + 0x20], edx
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
mov ecx, edi
mov byte [esp + 0x6c], 2
call eax
test eax, eax
je 0x41648b
push ebp
push esi
mov ecx, eax
call fcn.004161a0
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 8]
jge 0x4167e4
mov ecx, dword [eax]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 9
jne 0x4167e4
xor eax, eax
cmp dword [esp + 0x54], eax
jbe 0x4164d4
jmp 0x4164c0
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi]
sub edx, dword [ecx]
inc eax
mov dword [ecx], edx
cmp eax, dword [esp + 0x54]
jb 0x4164c0
mov ecx, dword [esp + 0x14]
push esi
call fcn.0042cd60
push esi
mov ecx, edi
call fcn.004273e0
mov eax, dword [esi]
mov byte [eax], 0xe9
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
add dword [esi], 5
xor eax, eax
cmp dword [esp + 0x3c], eax
jbe 0x416518
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + eax*4]
mov edx, dword [esi]
sub edx, dword [ecx]
inc eax
mov dword [ecx], edx
cmp eax, dword [esp + 0x3c]
jb 0x416504
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x4c]
inc ebx
mov dword [ebp + 0x34], ecx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x41653c
push eax
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x34]
jmp 0x41672f
push ebp
push esi
mov ecx, edi
call fcn.0042a940
jmp 0x4167c6
push ebp
push esi
mov ecx, edi
call fcn.0042a9e0
jmp 0x4167c6
mov edx, dword [esi]
mov byte [edx], 0x68
mov eax, dword [esi]
mov dword [eax + 1], edi
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0x53
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xe8
cmp dword [edi + 0x1c], 1
mov eax, dword [esi]
jne 0x416591
mov ecx, 0x40a2b0
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x41659e
mov edx, 0x40a420
sub edx, eax
sub edx, 5
mov dword [eax + 1], edx
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0x8b
mov eax, dword [esi]
mov byte [eax + 1], 4
mov ecx, dword [esi]
mov byte [ecx + 2], 0x85
mov eax, dword [esi]
lea edx, [eax + 9]
mov dword [eax + 3], edx
add dword [esi], 7
mov eax, dword [esi]
mov byte [eax], 0xff
mov eax, dword [esi]
mov byte [eax + 1], 0xe0
add dword [esi], 2
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x118], eax
jbe 0x4165f4
jmp 0x4165e0
mov edx, dword [esi]
mov dword [edx], 0
add dword [esi], 4
inc eax
cmp eax, dword [edi + 0x118]
jb 0x4165e0
xor ebp, ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x38]
lea edx, [esp + 0x58]
mov dword [eax + 0x38], edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x6c], 3
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x6c], 4
mov dword [esp + 0x74], ebp
cmp dword [edi + 0x118], ebp
jbe 0x4166b1
lea ecx, [ecx]
mov eax, dword [edi + 0x110]
mov ecx, dword [eax + ebp*4]
test ecx, ecx
je 0x41669e
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov dword [eax + ebp*4], edx
mov edx, dword [esp + 0x78]
push edx
push esi
call fcn.004161a0
mov eax, dword [edi + 0x118]
dec eax
cmp ebp, eax
je 0x41669e
mov ebp, dword [esi]
inc ebx
push ebx
lea ecx, [esp + 0x44]
inc ebp
call fcn.00404770
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov dword [eax + ebx*4], ebp
mov ecx, dword [esi]
mov ebp, dword [esp + 0x74]
mov byte [ecx], 0xe9
mov eax, dword [esi]
inc ebx
lea edx, [eax + 5]
mov dword [eax + 1], edx
add dword [esi], 5
mov dword [esp + 0x48], ebx
inc ebp
mov dword [esp + 0x74], ebp
cmp ebp, dword [edi + 0x118]
jb 0x416640
mov edx, dword [esp + 0x40]
xor ebp, ebp
xor eax, eax
cmp ebx, ebp
jbe 0x4166c7
mov ecx, dword [edx + eax*4]
mov edi, dword [esi]
sub edi, dword [ecx]
inc eax
mov dword [ecx], edi
cmp eax, ebx
jb 0x4166b7
xor ebp, ebp
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 8]
jge 0x4167fb
mov eax, dword [eax]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp eax, 0x33
jne 0x416816
xor eax, eax
cmp dword [esp + 0x60], eax
jbe 0x41670a
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi]
sub edx, dword [ecx]
inc eax
mov dword [ecx], edx
cmp eax, dword [esp + 0x60]
jb 0x4166f6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x40]
inc edi
mov dword [esp + 0x14], edi
test eax, eax
je 0x41672b
push eax
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], 0xffffffff
test eax, eax
je 0x4167cb
push eax
call fcn.004ae2c3
add esp, 4
jmp 0x4167cb
push ebp
push esi
mov ecx, edi
call fcn.0042a990
jmp 0x4167c6
mov edx, dword [esi]
add edi, 8
push edi
lea ecx, [ebp + 4]
mov dword [esp + 0x78], edx
call fcn.004128d0
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
jmp 0x4167c6
mov edx, dword [esi]
lea eax, [esp + 0x74]
inc edx
push eax
lea ecx, [ebp + 0x24]
mov dword [edi + 0x20], edx
mov dword [esp + 0x78], edi
call fcn.00404fd0
mov ecx, dword [esi]
mov byte [ecx], 0xe9
mov eax, dword [esi]
lea edx, [eax + 5]
mov dword [eax + 1], edx
add dword [esi], 5
jmp 0x4167c6
push ebp
push esi
mov ecx, edi
call fcn.0042a540
jmp 0x4167c6
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
push esi
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
mov ecx, edi
call edx
test eax, eax
je 0x4167c6
push ebp
push esi
mov ecx, eax
call fcn.004161a0
inc ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 8]
jl 0x4161e0
jmp 0x416838
mov eax, dword [esp + 0x28]
jmp 0x41682b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4167f5
push eax
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x34]
jmp 0x41682b
cmp edx, ebp
je 0x41680e
mov eax, dword [esp + 0x40]
push eax
call fcn.004ae2c3
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x58]
cmp eax, ebp
jmp 0x41682d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x416827
push eax
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x416838
push eax
call fcn.004ae2c3
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8