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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
xor edx, edx
mov dword [ebp - 8], ebx
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xbc]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x158]
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x174]
mov dword [esi + 0x178], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
je 0x401bf2
nop dword [eax + eax]
movzx eax, byte [edx + ecx + 1]
add edx, ecx
mov ecx, eax
mov dword [ebp - 0x28], eax
and ecx, 0x1f
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 3]
mov ebx, eax
and ebx, 0xf
mov dword [ebp - 0x1c], ebx
test al, 0x10
je 0x40187a
and eax, 0x30
cmp al, 0x30
jne 0x401873
movzx eax, byte [edx + 4]
cmp eax, 0xb7
ja 0x40187a
mov ebx, 0xb7
sub ebx, eax
jmp 0x40187c
mov ebx, 0xb8
jmp 0x40187c
xor ebx, ebx
sub edx, ebx
add edx, 0xbc
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x401bd1
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x14]
je 0x4018b8
mov edi, dword [eax + 0x18]
cmp ecx, edi
je 0x4018a7
cmp ecx, dword [eax + 0x1c]
jne 0x401bd1
cmp ecx, edi
mov eax, 0x3c
mov ecx, 0x4c
cmovne eax, ecx
jmp 0x4018bd
mov eax, 0x2c
lea edi, [esi + 4]
mov dword [ebp - 0x18], eax
add edi, eax
test byte [ebp - 0x28], 0x40
je 0x40196f
mov ecx, dword [ebp - 0x1c]
mov dword [eax + esi], ecx
mov eax, dword [edi + 4]
mov edx, dword [edi]
sub eax, edx
cmp eax, 6
jb 0x40193d
cmp byte [edx], 0
jne 0x40193d
cmp byte [edx + 1], 0
jne 0x40193d
cmp byte [edx + 2], 1
jne 0x40193d
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
jne 0x40193d
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x2c]
add ecx, esi
cmp ecx, eax
jne 0x40193d
mov eax, dword [ebp + 0xc]
mov ecx, esi
cmp dword [eax + 0x10], 0x24
sete al
movzx eax, al
push eax
push edi
call fcn.00401f90
cmp dword [ebp - 0xc], 0
jg 0x40193d
jl 0x401931
cmp dword [ebp - 8], 0
jae 0x40193d
mov eax, dword [esi + 0x68]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xc], eax
mov ecx, dword [edi]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, eax
jbe 0x401958
push ebx
mov ecx, edi
call fcn.00409740
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
push ebx
push dword [ebp - 0x20]
push ecx
call fcn.004114d0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, ebx
mov dword [edi + 4], ecx
jmp 0x4019b0
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 4]
cmp dword [ebp - 0x28], ecx
je 0x4019b0
mov eax, dword [eax + esi]
mov ecx, dword [ebp - 0x18]
inc eax
mov edx, dword [ebp - 0x20]
and eax, 0xf
mov dword [ecx + esi], eax
cmp eax, dword [ebp - 0x1c]
jne 0x4019a8
push dword [ebp + 0x10]
lea eax, [edx + ebx]
mov ecx, edi
push eax
push edx
push dword [edi + 4]
call fcn.00408d20
mov ecx, dword [edi + 4]
jmp 0x4019b0
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov dword [edi + 4], eax
mov ebx, dword [edi]
sub ecx, ebx
cmp ecx, 6
jb 0x401bd1
movzx edx, byte [ebx + 4]
movzx eax, byte [ebx + 5]
shl edx, 8
or edx, eax
je 0x401bd1
add edx, 6
cmp ecx, edx
jb 0x401bd1
jbe 0x4019e3
lea eax, [ebx + edx]
mov dword [edi + 4], eax
mov ecx, ebx
cmp byte [ecx], 0
jne 0x401bcc
cmp byte [ecx + 1], 0
jne 0x401bcc
cmp byte [ecx + 2], 1
jne 0x401bcc
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x2c]
add edx, esi
cmp edx, eax
jne 0x401a4b
mov eax, dword [ebp + 0xc]
mov ecx, esi
cmp dword [eax + 0x10], 0x24
sete al
movzx eax, al
push eax
push edi
call fcn.00401f90
cmp dword [ebp - 0xc], 0
jg 0x401bcc
jl 0x401a3a
cmp dword [ebp - 8], 0
jae 0x401bcc
mov eax, dword [esi + 0x68]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xc], eax
jmp 0x401bcc
lea eax, [esi + 0x3c]
cmp edx, eax
jne 0x401a87
push edi
mov ecx, esi
call fcn.00402a40
cmp dword [ebp - 0x14], 0
jg 0x401bcc
jl 0x401a70
cmp dword [ebp - 0x10], 0
jae 0x401bcc
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x14], eax
jmp 0x401bcc
cmp byte [ecx + 3], 0xbd
jne 0x401bcc
mov eax, dword [edi + 4]
sub eax, ecx
cmp eax, 0xe
jb 0x401bcc
movzx edx, byte [ecx + 8]
add edx, 9
mov dword [ebp - 0x38], edx
cmp edx, eax
jae 0x401bcc
mov al, byte [ecx + 7]
and al, 0xc0
cmp al, 0x80
jb 0x401bcc
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
test edx, edx
jl 0x401ae2
jg 0x401ad4
test eax, eax
jb 0x401ae2
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x1c], eax
jmp 0x401b16
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 0x8c]
mov eax, dword [esi + 0x90]
mov ebx, dword [esi + 0x88]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ebx
test edx, edx
jl 0x401b95
jg 0x401b16
test eax, eax
jb 0x401b95
movzx ebx, byte [ecx + 0xb]
movzx eax, byte [ecx + 0xa]
and ebx, 0xfe
shl eax, 8
or ebx, eax
movzx eax, byte [ecx + 0xc]
shl ebx, 7
or ebx, eax
movzx eax, byte [ecx + 0xd]
shr eax, 1
shl ebx, 7
or ebx, eax
mov al, byte [ecx + 9]
and al, 0xe
movzx eax, al
cdq
shld edx, eax, 0x1d
shl eax, 0x1d
or ebx, eax
xor eax, eax
or eax, edx
sub ebx, dword [ebp - 0x28]
sbb eax, dword [ebp - 0x20]
and eax, 1
cmp eax, 1
ja 0x401b7e
jb 0x401b67
test ebx, ebx
jae 0x401b7e
test eax, eax
jb 0x401b8c
ja 0x401b75
cmp ebx, 0xdbba0
jbe 0x401b8c
mov ebx, 0xdbba0
xor eax, eax
jmp 0x401b8c
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
add dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
adc dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
sub esp, 0x18
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, esp
mov dword [ebp - 0x4c], ebx
movups xmm0, xmmword [ebp - 0x54]
mov dword [ebp - 0x44], edi
push ecx
movups xmmword [eax], xmm0
lea ecx, [esi + 0xa4]
movq xmm0, qword [ebp - 0x44]
movq qword [eax + 0x10], xmm0
call fcn.00408f20
add esp, 0x1c
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
add edx, 0xbc
mov dword [ebp - 0x30], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cmp edx, eax
jb 0x401830
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x30]
mov edx, dword [edi]
sub eax, edx
cmp eax, 6
jb 0x401c59
cmp byte [edx], 0
jne 0x401c59
cmp byte [edx + 1], 0
jne 0x401c59
cmp byte [edx + 2], 1
jne 0x401c59
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
jne 0x401c59
cmp byte [ebp + 0x10], cl
jne 0x401c59
mov eax, dword [ebp + 0xc]
mov ecx, esi
cmp dword [eax + 0x10], 0x24
sete al
movzx eax, al
push eax
push edi
call fcn.00401f90
cmp dword [ebp - 0xc], 0
jg 0x401c54
jl 0x401c48
test ebx, ebx
jae 0x401c54
mov eax, dword [esi + 0x68]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xcc]
lea edi, [esi + 0xc8]
mov eax, ecx
cmp dword [edi], ecx
jne 0x401c99
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0
je 0x401c7d
cmp dword [esi + 0xd4], 0
jl 0x401c99
cmp dword [edx + 0x18], 0
je 0x401c8e
cmp dword [esi + 0x164], 0
mov eax, ecx
jl 0x401c99
push edi
mov ecx, esi
call fcn.00402dc0
mov eax, dword [edi + 4]
cmp dword [edi], eax
je 0x401f84
mov eax, dword [esi + 0xc]
lea ebx, [esi + 8]
sub eax, dword [ebx]
xor edi, edi
mov dword [ebp + 0x10], edi
mov ecx, ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xc]
call fcn.00408d20
mov eax, dword [esi + 0x158]
cmp eax, dword [esi + 0x15c]
jne 0x401cea
mov eax, dword [esi + 0x174]
cmp eax, dword [esi + 0x178]
je 0x401f36
cmp dword [ebp - 0xc], edi
jl 0x401d3d
mov ecx, dword [ebp - 8]
jg 0x401cf8
test ecx, ecx
jb 0x401d3d
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
test edx, edx
jl 0x401d3d
jg 0x401d08
test eax, eax
jb 0x401d3d
sub ecx, eax
mov eax, dword [ebp - 0xc]
sbb eax, edx
and eax, 1
cmp eax, 1
ja 0x401d1d
jb 0x401d2b
test ecx, ecx
jb 0x401d2b
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add dword [esi + 0x70], ecx
adc dword [esi + 0x74], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x7c], eax
cmp dword [ebp - 0x14], edi
jl 0x401da2
mov ecx, dword [ebp - 0x10]
jg 0x401d4b
test ecx, ecx
jb 0x401da2
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
test edx, edx
jl 0x401da2
jg 0x401d61
test eax, eax
jb 0x401da2
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
and eax, 1
cmp eax, 1
ja 0x401d76
jb 0x401d84
test ecx, ecx
jb 0x401d84
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add dword [esi + 0x88], ecx
adc dword [esi + 0x8c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x94], eax
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
test edx, edx
jg 0x401e5c
jl 0x401dba
test eax, eax
jae 0x401e5c
cmp dword [ebp - 0xc], edi
jl 0x401e5c
mov ecx, dword [ebp - 8]
jg 0x401dd0
test ecx, ecx
jb 0x401e5c
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
test edx, edx
jl 0x401dfe
jg 0x401de6
test eax, eax
jb 0x401dfe
mov ecx, dword [esi + 0x88]
sub ecx, eax
mov eax, dword [esi + 0x8c]
sbb eax, edx
add ecx, dword [ebp - 8]
adc eax, dword [ebp - 0xc]
jmp 0x401e15
mov edx, dword [ebp - 0x14]
test edx, edx
jl 0x401e4e
mov eax, dword [ebp - 0x10]
jg 0x401e0e
test eax, eax
jb 0x401e4e
sub ecx, eax
mov eax, dword [ebp - 0xc]
sbb eax, edx
and eax, 1
cmp eax, 1
ja 0x401e3a
jb 0x401e23
test ecx, ecx
jae 0x401e3a
test eax, eax
jb 0x401e48
ja 0x401e31
cmp ecx, 0xdbba0
jbe 0x401e48
mov ecx, 0xdbba0
xor eax, eax
jmp 0x401e48
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ecx
mov ecx, dword [ebp - 0xc]
mov edx, ecx
mov eax, dword [ebp - 8]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
cmp dword [esi + 0x94], edi
jg 0x401ee9
jl 0x401e72
cmp dword [esi + 0x90], edi
jae 0x401ee9
cmp dword [ebp - 0x14], edi
jl 0x401ee9
jg 0x401e7e
cmp dword [ebp - 0x10], edi
jb 0x401ee9
test edx, edx
jl 0x401ed7
jg 0x401e88
test eax, eax
jb 0x401ed7
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
add ecx, dword [ebp - 0x10]
adc eax, dword [ebp - 0x14]
and eax, 1
cmp eax, 1
ja 0x401ebd
jb 0x401ea6
test ecx, ecx
jae 0x401ebd
test eax, eax
jb 0x401ecb
ja 0x401eb4
cmp ecx, 0xdbba0
jbe 0x401ecb
mov ecx, 0xdbba0
xor eax, eax
jmp 0x401ecb
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x94], eax
push esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ebx
mov ecx, esi
mov dword [ebp - 0x38], edi
call fcn.00405200
mov eax, dword [ebp - 0x3c]
test eax, eax
jle 0x401f36
mov ecx, 0x3e8
imul ecx
push ebx
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 4]
cdq
add edi, eax
mov eax, dword [ebp - 0x38]
adc ecx, edx
cdq
push edx
push eax
push ecx
push edi
call fcn.00428d70
mov dword [ebp - 0x38], ebx
pop ebx
mov edi, eax
mov dword [ebp - 0x38], edx
mov dword [ebp + 0x10], edi
lea ebx, [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
je 0x401f84
mov edx, dword [esi + 0x18]
cmp edx, dword [esi + 0x1c]
je 0x401f53
mov dword [edx], ecx
add dword [esi + 0x18], 4
jmp 0x401f60
lea ecx, [ebp + 0xc]
push ecx
push edx
lea ecx, [esi + 0x14]
call fcn.00408770
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x20]
cmp eax, dword [ecx + 8]
je 0x401f7a
mov dword [eax], edi
add dword [ecx + 4], 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp + 0x10]
push edx
push eax
call fcn.00408770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc