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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0040c280
mov ecx, dword [edi + 0x154]
add ecx, dword [edi + 0x1074]
mov esi, dword [edi + 0x158]
mov eax, dword [edi + 0x15c]
mov edx, dword [edi + 0x160]
add esi, dword [edi + 0x1078]
sub eax, dword [edi + 0x107c]
sub edx, dword [edi + 0x1080]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x1090]
xor bl, bl
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
test ecx, ecx
je 0x415759
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415759
mov ecx, dword [edi + 0x1090]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
mov bl, 1
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x1094]
test ecx, ecx
je 0x415781
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415781
mov ecx, dword [edi + 0x1094]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x109c], 0
je 0x4158bd
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x10c4]
add esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub ecx, dword [edi + 0x10cc]
sub edx, dword [edi + 0x10d0]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi + 0x10c8]
mov dword [esp + 0x38], esi
mov esi, dword [edi + 0x109c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call fcn.004146b0
test bl, bl
je 0x4158bd
mov ecx, dword [edi + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x415801
cmp byte [edi + 0x10a0], 0
je 0x4158bd
mov ecx, dword [edi + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
mov edx, dword [edi + 0x109c]
add eax, ecx
mov dword [esp + 0x14], eax
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x18], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov eax, dword [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cmp dword [esp + 0x18], eax
jle 0x41589b
mov ecx, dword [edi + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
mov ecx, dword [edi + 0x1090]
xor eax, eax
call fcn.0042e1e0
mov byte [edi + 0x10a0], 1
jmp 0x4158bd
cmp byte [edi + 0x10a0], 0
je 0x4158bd
mov ecx, dword [edi + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 0
call eax
mov byte [edi + 0x10a0], 0
mov ecx, dword [edi + 0x1090]
test ecx, ecx
je 0x415913
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x415913
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
add eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x1090]
mov ebx, dword [ecx]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x5c]
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x34]
call edx
mov ecx, dword [edi + 0x1094]
test ecx, ecx
je 0x415971
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415971
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x1094]
mov edx, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x60]
call eax
add eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0x1094]
mov ebx, dword [ecx]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x5c]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x60]
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x34]
call edx
cmp dword [edi + 0x106c], 0
je 0x415e52
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x1094]
sub ebx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x4159b2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x4159b2
mov eax, dword [edi + 0x1094]
add ebx, dword [eax + 0x1068]
xor ecx, ecx
xor esi, esi
cmp dword [edi + 0x106c], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
jle 0x415ab7
mov ecx, dword [edi + 0x1068]
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
mov ecx, esi
call edx
test al, al
je 0x415a9a
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
jne 0x415a9a
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x114]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call eax
cmp dword [esp + 0x20], 0
jne 0x415a2b
inc dword [esp + 0xc]
jmp 0x415a63
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp dword [esp + 0x20], eax
jge 0x415a47
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp dword [esp + 0x20], eax
jle 0x415a63
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
add edx, dword [eax]
add edx, dword [esp + 0x20]
add dword [esp + 0x14], edx
inc dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [edi + 0x106c]
mov dword [esp + 0x10], eax
jl 0x4159d2
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x1084]
dec eax
imul edx, eax
mov dword [esp + 0x1c], eax
xor eax, eax
add ecx, edx
cmp esi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
jle 0x415aee
mov eax, ebx
sub eax, ecx
cdq
idiv esi
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x1094]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], ebx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebx
cmp ecx, esi
je 0x415b2b
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415b2b
mov eax, dword [edi + 0x1094]
sub ebx, dword [eax + 0x106c]
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x106c], esi
mov dword [esp + 0x10], esi
jle 0x415d0e
mov ecx, dword [edi + 0x1068]
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
mov ecx, esi
call edx
test al, al
je 0x415cf7
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
je 0x415b82
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x1b0]
push ecx
mov ecx, edi
call edx
jmp 0x415cf7
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
push ecx
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x20], 0
mov ecx, esi
jne 0x415bc4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
call eax
cmp dword [esp + 0x20], eax
jge 0x415bde
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp dword [esp + 0x20], eax
jle 0x415bfa
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov dword [esp + 0x24], eax
test eax, eax
jne 0x415c1f
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
jge 0x415c29
mov dword [esp + 0x24], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp dword [esp + 0x24], eax
jge 0x415c45
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
cmp dword [esp + 0x24], eax
jle 0x415c67
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ebx]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, ebx
mov ebx, dword [esp + 0x24]
add eax, ebx
mov ebx, dword [esp + 0x48]
add eax, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
mov dword [esp + 0x54], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x1084]
mov ebx, dword [esp + 0x18]
lea esi, [ecx + edx]
mov edx, dword [esp + 0x38]
add esi, eax
add esi, edx
add ebx, esi
mov esi, dword [esp + 0x20]
add esi, ecx
add esi, edx
mov edx, dword [esp + 0x20]
add dword [esp + 0xc], esi
add ecx, edx
add ecx, eax
sub dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [edi + 0x106c]
mov dword [esp + 0x10], eax
jl 0x415b3b
xor esi, esi
mov eax, dword [edi + 0x1084]
imul eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1094]
add dword [esp + 0xc], eax
cmp ecx, esi
je 0x415e52
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [esp + 0xc], eax
mov eax, dword [edx + 0xc8]
jle 0x415d86
call eax
mov ecx, dword [edi + 0x1094]
test al, al
je 0x415d63
mov eax, dword [esp + 0xc]
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
call fcn.0042e170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
mov eax, dword [esp + 0xc]
sub eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x1094]
add eax, dword [ebp + 8]
call fcn.0042e170
jmp 0x415df2
call eax
test al, al
je 0x415e52
mov ecx, dword [edi + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push esi
call eax
mov ecx, dword [edi + 0x1094]
cmp dword [ecx + 0x1068], esi
je 0x415df2
cmp dword [ecx + 0x106c], esi
mov dword [ecx + 0x1068], esi
jle 0x415dc3
mov dword [ecx + 0x106c], esi
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [edi + 0x1094]
cmp dword [ecx + 0x106c], esi
je 0x415e45
mov eax, dword [ecx + 0x1068]
cmp eax, esi
mov dword [ecx + 0x106c], esi
jge 0x415e16
mov dword [ecx + 0x106c], eax
mov esi, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ecx + 0x158]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x15c]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x160]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [edi + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10