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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0x1c], 0
push edi
mov dword [ebp - 8], ebx
jl 0x417036
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
sub esp, 8
lea edx, [ebp - 0x28]
mov dword [ebx + 0x50], 0xffffffff
mov dword [ebx + 0x54], 0xffffffff
call fcn.00416d30
mov ecx, dword [ebx + 0x228]
mov eax, dword [ebx + 0x1e4]
lea esi, [ebx + 0x1e0]
add esp, 8
test ecx, ecx
je 0x4170b2
test eax, eax
je 0x4170b2
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4170b2
mov eax, dword [eax + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov dword [ecx + 0x10], 0xffffffff
mov dword [ecx + 0x14], 0xffffffff
mov edx, dword [ebx + 0x5c]
lea esi, [ebx + 0x78]
test esi, esi
je 0x4170ce
cmp dword [esi], 0
je 0x4170ce
mov ecx, esi
call fcn.00406a40
mov dword [esi + 0x150], edx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00406740
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp + 0xc], edi
test esi, esi
je 0x417136
cmp dword [esi], 0
je 0x417136
mov ecx, dword [esi + 0x24]
cmp dword [esi + 0x20], ecx
jle 0x417136
mov eax, dword [esi + 0x10]
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
test edx, 0x400
je 0x417119
add dword [esi + 0x158], 1
lea eax, [ecx + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
jmp 0x417136
cmp dl, 0xff
jne 0x417129
mov edi, edi
lea eax, [eax + 4]
inc ecx
cmp byte [eax], 0xff
je 0x417120
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ecx*8]
mov ebx, dword [eax + ecx*8 + 4]
mov dword [ebp + 0xc], edi
mov eax, edi
and eax, ebx
cmp eax, 0xffffffff
jne 0x4171b3
test esi, esi
je 0x417136
cmp dword [esi], 0
je 0x4170e1
mov edx, dword [esi + 0x24]
cmp dword [esi + 0x20], edx
jle 0x4170e1
mov eax, dword [esi + 0x10]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
test eax, 0x400
je 0x417178
add dword [esi + 0x158], 1
lea eax, [edx + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
jmp 0x4170e1
movzx edi, al
cmp edi, 0xff
jne 0x417194
movzx eax, byte [ecx + 4]
lea ecx, [ecx + 4]
inc edx
add edi, eax
cmp eax, 0xff
je 0x417183
add dword [esi + 0xc], edi
add dword [esi + 0x158], 1
mov edi, dword [ebp + 0xc]
lea eax, [edx + 1]
adc dword [esi + 0x15c], 0
mov dword [esi + 0x24], eax
jmp 0x4170e1
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x54], eax
mov dword [ebp - 0x10], 0
lea esp, [esp]
test esi, esi
je 0x417483
cmp dword [esi], 0
je 0x417483
mov edi, dword [esi + 0x24]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], ecx
cmp dword [esi + 0x20], ecx
jle 0x417483
mov eax, dword [esi + 0x10]
lea eax, [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
test ecx, 0x400
jne 0x4174ac
movzx eax, cl
mov edx, ecx
and ecx, 0x100
and edx, 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0xff
jne 0x417264
mov esi, dword [ebp - 0xc]
mov ebx, edi
mov edi, eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
inc ebx
movzx ecx, al
test eax, 0x200
mov eax, 0x200
cmovne edx, eax
add edi, ecx
cmp ecx, 0xff
je 0x417231
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0x78]
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x15c]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
mov ecx, dword [esi + 0xc]
add ecx, dword [esi]
mov esi, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x50], esi
mov esi, dword [ebx + 0x48]
shl eax, 5
xorps xmm0, xmm0
mov eax, dword [eax + esi + 0x1c]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edx
mov edx, 1
lea ecx, [ebp - 0x3c]
mov dword [ebp + 0xc], eax
movq qword [ebp - 0x3c], xmm0
call fcn.0040fd60
lea esi, [ebx + 0x78]
test eax, eax
jne 0x41741a
mov eax, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [eax + 8]
cmp eax, 1
jle 0x4172fd
sar eax, 1
inc edx
cmp eax, 1
jg 0x4172f5
lea ecx, [ebp - 0x3c]
call fcn.0040fd60
cmp eax, 0xffffffff
je 0x41741a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 0x20]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov dword [ebp + 0xc], ecx
test ecx, ecx
js 0x41741a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417338
add eax, ecx
sar eax, 2
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x417347
mov eax, dword [eax + 4]
jmp 0x41734a
or eax, 0xffffffff
add eax, ecx
sar eax, 2
cdq
add eax, dword [ebx + 0x50]
adc edx, dword [ebx + 0x54]
cmp edx, dword [ebp + 0x14]
jg 0x4174c0
jl 0x41736c
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x4174c3
cmp dword [esi], 0
je 0x4173bb
mov edx, dword [esi + 0x24]
cmp dword [esi + 0x20], edx
jle 0x4173bb
mov eax, dword [esi + 0x10]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
test eax, 0x400
jne 0x4173a7
movzx edi, al
cmp edi, 0xff
jne 0x4173a4
movzx eax, byte [ecx + 4]
lea ecx, [ecx + 4]
inc edx
add edi, eax
cmp eax, 0xff
je 0x417393
add dword [esi + 0xc], edi
add dword [esi + 0x158], 1
lea eax, [edx + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
push 0
lea edx, [ebp - 0x60]
lea ecx, [ebx + 0x230]
call fcn.0040be70
add esp, 4
lea edx, [ebx + 0x230]
lea ecx, [ebx + 0x1e0]
call fcn.0040b830
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
jl 0x41740f
mov eax, dword [ebp - 0xc]
jg 0x4173f1
cmp eax, 0xffffffff
jbe 0x41740f
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
test ecx, ecx
jg 0x41740f
jl 0x417401
test eax, eax
jae 0x41740f
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4171d0
cmp dword [esi + 0x20], edi
jle 0x4171d0
mov eax, dword [esi + 0x10]
lea ecx, [eax + edi*4]
mov eax, dword [ecx]
test eax, 0x400
je 0x41744b
add dword [esi + 0x158], 1
lea eax, [edi + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
jmp 0x4171d0
movzx edx, al
cmp edx, 0xff
jne 0x417467
movzx eax, byte [ecx + 4]
lea ecx, [ecx + 4]
inc edi
add edx, eax
cmp eax, 0xff
je 0x417456
add dword [esi + 0xc], edx
add dword [esi + 0x158], 1
lea eax, [edi + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
jmp 0x4171d0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00416d30
add esp, 8
test edx, edx
jl 0x4174c0
jg 0x41749d
test eax, eax
jb 0x4174c0
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00406740
jmp 0x4171d0
add dword [esi + 0x158], 1
lea eax, [edi + 1]
mov dword [esi + 0x24], eax
adc dword [esi + 0x15c], 0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
cmp dword [ebx + 0x54], eax
jg 0x417599
jl 0x417500
cmp dword [ebx + 0x50], ecx
jae 0x417599
jmp 0x417500
sub ecx, dword [ebx + 0x50]
mov edi, dword [ebx + 0x1f8]
sbb eax, dword [ebx + 0x54]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], eax
cmp edi, 0xffffffff
jle 0x417525
mov esi, dword [ebx + 0x1f4]
cmp edi, esi
jge 0x417525
sub esi, edi
jmp 0x417527
xor esi, esi
mov eax, esi
cdq
cmp edx, dword [ebp + 0xc]
jl 0x417537
jg 0x417535
cmp eax, ecx
jbe 0x417537
mov esi, ecx
lea eax, [ebx + 0x1e0]
test esi, esi
je 0x417549
lea ecx, [edi + esi]
cmp ecx, dword [eax + 0x14]
jg 0x41754f
lea ecx, [edi + esi]
mov dword [eax + 0x18], ecx
mov eax, esi
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
cmp edx, dword [ebp + 0xc]
jg 0x41757f
jl 0x417564
cmp eax, dword [ebp - 0x18]
jae 0x41757f
mov ecx, ebx
call fcn.00416de0
test eax, eax
jg 0x41757f
or edx, 0xffffffff
mov ecx, ebx
call fcn.00403900
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0x54], eax
jl 0x417500
jg 0x417599
cmp dword [ebx + 0x50], ecx
jb 0x417500
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret