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

Disassembly:
sub esp, 0x74
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
mov eax, edx
mov dword [esp + 0xc], 0
push esi
mov dword [esp + 0x1c], eax
mov ebx, ecx
mov eax, dword [esp + 0x84]
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
call fcn.00417340
mov esi, eax
test esi, esi
jne 0x417a51
mov ebp, dword [ebx + 0x44]
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4176e5
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x64], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x65], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x66], al
mov byte [esp + 0x67], cl
mov ecx, dword [ebx + 0x68]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x68], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x69], al
mov eax, ecx
shr eax, 8
mov dword [esp + 0x5c], 0x82067f37
mov dword [esp + 0x60], 0x18e22d00
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], cl
test ecx, ecx
jne 0x4175fe
lea eax, [ebx + 0x54]
push eax
push 8
call fcn.00408aa0
add esp, 8
mov eax, dword [ebx + 0x54]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], eax
xor edx, edx
mov eax, dword [ebx + 0x58]
xor esi, esi
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x74]
cmp ecx, eax
jb 0x417614
mov ecx, esi
mov byte [ebx + 0x41], 0
mov eax, ecx
mov byte [esp + 0x7b], dl
shr eax, 0x18
mov byte [esp + 0x74], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x75], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x76], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x78], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x79], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x7a], al
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x50], edx
lea edx, [esp + 0x5c]
mov dword [ebx + 0x4c], ecx
mov eax, dword [ebx + 8]
push 0
push 0
mov byte [esp + 0x7f], cl
mov byte [ebx + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], esi
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x417a4f
mov edi, dword [esp + 0x94]
cmp byte [ebx + 0x30], al
je 0x4176ec
test edi, edi
je 0x4176ec
mov ecx, dword [ebx + 8]
mov eax, edi
and eax, 0x13
push eax
push ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x4176ec
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x74
ret
mov edi, dword [esp + 0x94]
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
add eax, 0x18
mov dword [esp + 0x24], eax
cdq
mov ecx, eax
mov dword [esp + 0x38], ebx
mov eax, edx
movlpd qword [esp + 0x40], xmm0
push eax
push ecx
push 0
push ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
call fcn.004cbcd0
mov ebp, eax
mov edi, edx
mov eax, dword [esp + 0x18]
add ebp, 0x20
mov ecx, eax
mov dword [esp + 0x34], eax
adc edi, 0
mov dword [esp + 0x1c], ebp
test eax, eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x90]
je 0x417805
inc dword [esp + 0x28]
test eax, eax
je 0x41776c
cmp dword [ecx + 0xc], 0
jne 0x41776c
mov eax, dword [esp + 0x8c]
jmp 0x41776e
xor eax, eax
mov edx, dword [ecx + 4]
lea esi, [esp + 0x5c]
push esi
push edx
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [esp + 0x40]
push eax
call fcn.00415340
add esp, 0xc
lea ecx, [esp + 0x38]
mov edx, esi
push edi
push ebp
push 0x18
call fcn.00417490
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x417a4f
mov edx, dword [esp + 0x14]
mov ecx, ebp
add ecx, 0x18
mov eax, edi
adc eax, esi
push eax
push ecx
push dword [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.00417490
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x417a4f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cdq
add ebp, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x90]
adc edi, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x417755
mov ecx, dword [esp + 0x3c]
jmp 0x417808
mov ecx, dword [ebx + 8]
test eax, eax
je 0x41799a
mov edx, dword [esp + 0x94]
test dl, 0x20
je 0x41792f
cmp byte [ebx + 0x31], 0
je 0x417987
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x417854
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x417848
mov eax, 0x200
jmp 0x417859
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
jmp 0x417859
mov eax, 0x1000
cdq
mov ebp, eax
mov ebx, edx
mov edi, ebp
mov ecx, ebx
add edi, dword [esp + 0x1c]
push ebx
adc ecx, dword [esp + 0x34]
sub edi, 1
push ebp
sbb ecx, 0
push ecx
push edi
call fcn.004d4090
push ebx
push ebp
push edx
push eax
call fcn.004cbcd0
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
cmp ebp, edx
jg 0x41792b
mov ebx, dword [esp + 0x1c]
jl 0x4178a4
cmp ebx, eax
jae 0x41792b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x3c]
mov edi, dword [eax + 4]
mov edx, dword [eax + 0x14]
push edi
push dword [esp + 0x94]
call fcn.00415340
add esp, 0xc
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x38]
push ebp
push ebx
push 0x18
call fcn.00417490
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x417a4f
mov ecx, ebx
mov eax, ebp
add ecx, 0x18
mov edx, edi
adc eax, esi
push eax
push ecx
push dword [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.00417490
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x417a4f
mov eax, dword [esp + 0x24]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x10]
cmp ebp, dword [esp + 0x44]
jl 0x4178a4
jg 0x41792b
cmp ebx, dword [esp + 0x40]
jb 0x4178a4
mov ebx, dword [esp + 0x2c]
cmp byte [ebx + 0x2f], 0
je 0x41799e
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jl 0x41799e
jg 0x417944
test edi, edi
jb 0x41799e
push dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x5c]
mov ebp, dword [esp + 0x18]
add eax, ebp
push 0
push eax
call fcn.004cbcd0
mov ecx, dword [ebx + 0x14]
add eax, 0x20
adc edx, 0
cmp edx, ecx
jl 0x417975
jg 0x417971
cmp eax, edi
jbe 0x417975
mov edi, eax
mov ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.004165a0
add esp, 8
mov byte [ebx + 0x2f], 0
jmp 0x4179a2
mov eax, dword [ecx]
and edx, 0x13
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
jmp 0x41792f
xor ebp, ebp
jmp 0x4179a2
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [ebx + 0x44]
test eax, eax
je 0x4179d9
lea ecx, [ecx]
test esi, esi
jne 0x417a4f
push dword [eax + 0x14]
inc edi
mov ecx, ebx
mov edx, edi
call fcn.004155d0
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4179b0
test esi, esi
jne 0x417a4f
test ebp, ebp
jle 0x417a13
mov eax, dword [esp + 0x14]
inc edi
mov edx, edi
mov ecx, ebx
dec ebp
push dword [eax + 0x14]
call fcn.004155d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4179e1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x74
ret
test esi, esi
jne 0x417a4f
mov ecx, dword [esp + 0x20]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [ebx + 0x44], edi
mov word [ebx + 0x42], ax
cmp dword [esp + 0x90], esi
je 0x417a4f
mov eax, dword [esp + 0x8c]
mov ecx, ebx
inc dword [ebx + 0x3c]
mov dword [ebx + 0x48], eax
call fcn.004152a0
mov dword [ebx + 0xc], edi
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4eaf
add esp, 0x74
ret