Function at 0x417cc0
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.00417ac0
mov esi, eax
test esi, esi
jne 0x4181d1
mov ebp, dword [ebx + 0x44]
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x417e65
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 0x417d7e
lea eax, [ebx + 0x54]
push eax
push 8
call fcn.00409220
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 0x417d94
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 0x4181cf
mov edi, dword [esp + 0x94]
cmp byte [ebx + 0x30], al
je 0x417e6c
test edi, edi
je 0x417e6c
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 0x417e6c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004c515f
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.004cbf70
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 0x417f85
inc dword [esp + 0x28]
test eax, eax
je 0x417eec
cmp dword [ecx + 0xc], 0
jne 0x417eec
mov eax, dword [esp + 0x8c]
jmp 0x417eee
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.00415ac0
add esp, 0xc
lea ecx, [esp + 0x38]
mov edx, esi
push edi
push ebp
push 0x18
call fcn.00417c10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4181cf
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.00417c10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4181cf
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 0x417ed5
mov ecx, dword [esp + 0x3c]
jmp 0x417f88
mov ecx, dword [ebx + 8]
test eax, eax
je 0x41811a
mov edx, dword [esp + 0x94]
test dl, 0x20
je 0x4180af
cmp byte [ebx + 0x31], 0
je 0x418107
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x417fd4
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x417fc8
mov eax, 0x200
jmp 0x417fd9
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
jmp 0x417fd9
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.004d4320
push ebx
push ebp
push edx
push eax
call fcn.004cbf70
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
cmp ebp, edx
jg 0x4180ab
mov ebx, dword [esp + 0x1c]
jl 0x418024
cmp ebx, eax
jae 0x4180ab
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.00415ac0
add esp, 0xc
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x38]
push ebp
push ebx
push 0x18
call fcn.00417c10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4181cf
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.00417c10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4181cf
mov eax, dword [esp + 0x24]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x10]
cmp ebp, dword [esp + 0x44]
jl 0x418024
jg 0x4180ab
cmp ebx, dword [esp + 0x40]
jb 0x418024
mov ebx, dword [esp + 0x2c]
cmp byte [ebx + 0x2f], 0
je 0x41811e
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jl 0x41811e
jg 0x4180c4
test edi, edi
jb 0x41811e
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.004cbf70
mov ecx, dword [ebx + 0x14]
add eax, 0x20
adc edx, 0
cmp edx, ecx
jl 0x4180f5
jg 0x4180f1
cmp eax, edi
jbe 0x4180f5
mov edi, eax
mov ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.00416d20
add esp, 8
mov byte [ebx + 0x2f], 0
jmp 0x418122
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 0x4180af
xor ebp, ebp
jmp 0x418122
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [ebx + 0x44]
test eax, eax
je 0x418159
lea ecx, [ecx]
test esi, esi
jne 0x4181cf
push dword [eax + 0x14]
inc edi
mov ecx, ebx
mov edx, edi
call fcn.00415d50
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 0x418130
test esi, esi
jne 0x4181cf
test ebp, ebp
jle 0x418193
mov eax, dword [esp + 0x14]
inc edi
mov edx, edi
mov ecx, ebx
dec ebp
push dword [eax + 0x14]
call fcn.00415d50
mov esi, eax
add esp, 4
test esi, esi
je 0x418161
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004c515f
add esp, 0x74
ret
test esi, esi
jne 0x4181cf
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 0x4181cf
mov eax, dword [esp + 0x8c]
mov ecx, ebx
inc dword [ebx + 0x3c]
mov dword [ebx + 0x48], eax
call fcn.00415a20
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.004c515f
add esp, 0x74
ret