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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc650
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x509040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x5887f0]
mov edx, dword [edi + 0x19cc]
shr edx, 0xa
and dl, 1
mov dword [ebp - 0x20], edx
je 0x417a23
xor ebx, ebx
cmp dword [edi + 0x1dd0], ebx
jle 0x417a23
nop dword [eax]
mov eax, dword [edi + 0x1dd8]
mov esi, dword [eax + ebx*4]
mov eax, dword [edi + 0x1544]
mov cl, byte [esi + 0x6a]
test eax, eax
je 0x417a08
test cl, cl
je 0x417a08
push esi
call eax
mov ecx, dword [esi + 4]
add esp, 4
test al, al
je 0x4179ff
or ecx, 0x400
jmp 0x417a05
and ecx, 0xfffffbff
mov dword [esi + 4], ecx
inc ebx
cmp ebx, dword [edi + 0x1dd0]
jl 0x4179d0
mov eax, dword [edi + 0x1dd8]
lea ebx, [edi + 0x1dd8]
mov eax, dword [eax]
mov ecx, eax
jmp 0x417a40
mov eax, dword [edi + 0x1dd8]
lea ebx, [edi + 0x1dd8]
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test dl, dl
je 0x417a9e
push ecx
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x1530]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x1c], ebx
call eax
add esp, 8
mov dword [ebp - 0x18], esi
test dword [esi + 4], 0x400
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x417ac6
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
jmp 0x417ac3
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
push 0x1004
lea eax, [ebp - 0x28]
mov edx, 0x11111111
push eax
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
call fcn.00418090
xor ebx, ebx
mov dword [edi + 0x1ddc], 0
add esp, 0xc
mov dword [edi + 0x1de0], 0
mov dword [edi + 0x1de4], 0
cmp dword [edi + 0x1dd0], ebx
jle 0x417ef7
nop
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx*4]
mov eax, dword [edx]
mov esi, dword [ecx + eax]
mov dword [esi + 0x48], ebx
test ebx, ebx
jle 0x417cc6
mov eax, dword [edi + 0x1be0]
sub eax, 2
cmp dword [esi + 0x4c], eax
jge 0x417cc6
xor ecx, ecx
cmp dword [edi + 0x1c00], ecx
jle 0x417b7e
nop word [eax + eax]
mov eax, dword [edi + 0x1c08]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x30], esi
jne 0x417b75
mov dword [eax + 0x30], 0
mov eax, dword [edi + 0x1c08]
mov eax, dword [eax + ecx*4]
mov byte [eax + 0xc2], 0
inc ecx
cmp ecx, dword [edi + 0x1c00]
jl 0x417b50
cmp esi, dword [edi + 0x1de8]
jne 0x417b90
mov dword [edi + 0x1de8], 0
mov edx, dword [edx]
lea eax, [ebx*4]
add edx, eax
mov eax, dword [edi + 0x1dd8]
sub edx, eax
sar edx, 2
lea ecx, [eax + edx*4]
mov eax, dword [edi + 0x1dd0]
sub eax, edx
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
dec dword [edi + 0x1dd0]
add esp, 0xc
cmp byte [esi + 0x6a], 0
mov eax, dword [0x5887f0]
mov dword [ebp - 0x24], eax
je 0x417c09
mov eax, dword [eax + 0x1570]
test eax, eax
je 0x417bea
push esi
call eax
add esp, 4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1524]
test eax, eax
je 0x417bfd
push esi
call eax
add esp, 4
cmp dword [esi], 0x11111111
je 0x417c09
mov byte [esi + 0x6a], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x44], 0
mov byte [esi + 0x46], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x417c5b
mov ecx, eax
call fcn.00401b00
mov eax, dword [0x5887f0]
test eax, eax
je 0x417c4f
dec dword [eax + 0x374]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x417c87
mov ecx, eax
call fcn.00401b00
mov eax, dword [0x5887f0]
test eax, eax
je 0x417c7b
dec dword [eax + 0x374]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x4207e0
push 2
push 0xc
lea eax, [esi + 0xb0]
mov byte [ebp - 4], 1
push eax
call fcn.004871bc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5887f0]
test eax, eax
je 0x417cb6
dec dword [eax + 0x374]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
dec ebx
jmp 0x417eea
cmp byte [ebp - 0x20], 0
mov al, byte [esi + 0x6a]
mov byte [ebp - 0xd], al
je 0x417d51
test dword [esi + 4], 0x400
jne 0x417d51
test al, al
je 0x417d51
cmp byte [esi + 0x44], 0
je 0x417d18
lea eax, [ebp - 0x30]
push esi
push eax
mov eax, dword [edi + 0x1530]
call eax
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0xc8], xmm0
movss dword [esi + 0xcc], xmm1
movss dword [esi + 8], xmm0
movss dword [esi + 0xc], xmm1
cmp byte [esi + 0x45], 0
je 0x417d51
lea eax, [ebp - 0x38]
push esi
push eax
mov eax, dword [edi + 0x1538]
call eax
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0xd0], xmm0
movss dword [esi + 0xd4], xmm1
movss dword [esi + 0x10], xmm0
movss dword [esi + 0x14], xmm1
mov ecx, esi
call fcn.00418c30
test dword [esi + 4], 0x1000
lea edx, [esi + 0x58]
mov eax, dword [esi + 0xf0]
xorps xmm5, xmm5
mov ecx, dword [esi + 0xf4]
movss xmm4, dword [esi + 0xc]
movss xmm3, dword [esi + 8]
movaps xmm0, xmm4
mov dword [esi + 0xe4], ecx
movaps xmm1, xmm3
mov ecx, dword [esi + 0xfc]
mov dword [esi + 0xe0], eax
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xec], ecx
lea ecx, [esi + 8]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
addss xmm0, dword [esi + 0xe4]
movss xmm2, dword [esi + 0xe0]
addss xmm1, xmm2
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esi + 0x10]
subss xmm0, xmm2
movss dword [esi + 0x18], xmm1
xorps xmm2, xmm2
xorps xmm1, xmm1
addss xmm0, dword [esi + 0xe8]
maxss xmm2, xmm0
movss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0xe4]
addss xmm0, dword [esi + 0xec]
movss dword [esi + 0x20], xmm2
mov dword [esi + 0x60], 0x3f800000
maxss xmm1, xmm0
movss dword [esi + 0x24], xmm1
subss xmm3, dword [edx]
subss xmm4, dword [edx + 4]
je 0x417e5e
ucomiss xmm3, xmm5
lahf
test ah, 0x44
jp 0x417e50
ucomiss xmm4, xmm5
lahf
test ah, 0x44
jnp 0x417e5e
push ecx
mov ecx, esi
call fcn.00417400
add esp, 4
xorps xmm5, xmm5
mov eax, dword [edi + 0x155c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x417e82
cmp byte [ebp - 0xd], 0
je 0x417e82
push esi
call dword [ebp - 0x24]
fstp dword [ebp - 0x24]
movss xmm4, dword [ebp - 0x24]
add esp, 4
jmp 0x417eb4
movzx eax, word [esi + 0x68]
cmp ax, 0xffff
je 0x417e9e
cwde
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x1588]
movss xmm4, dword [eax + ecx*4 + 0x20]
jmp 0x417eb4
movss xmm4, dword [esi + 0x28]
ucomiss xmm4, xmm5
lahf
test ah, 0x44
jp 0x417eb4
movss xmm4, dword [0x4fe9fc]
movss xmm0, dword [esi + 0x28]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x417ee5
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jnp 0x417ee5
test dword [edi + 8], 0x4000
je 0x417ee5
movaps xmm1, xmm4
mov ecx, esi
divss xmm1, xmm0
call fcn.004176f0
movss dword [esi + 0x28], xmm4
inc ebx
cmp ebx, dword [edi + 0x1dd0]
jl 0x417b10
cmp dword [edi + 0x1580], 0
mov edx, dword [ebp - 0x18]
jne 0x417f57
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x1df0], eax
mov dword [edi + 0x1df4], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edi + 0x1df8], eax
mov dword [edi + 0x1dfc], ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [edi + 0x1e00], eax
mov dword [edi + 0x1e04], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [edi + 0x1e08], eax
mov dword [edi + 0x1e0c], ecx
mov eax, dword [edx + 0x28]
mov dword [edi + 0x1e10], eax
cmp byte [ebp - 0x20], 0
jne 0x417f75
mov dword [edi + 0x1de4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [edi + 0xc], 0x800
mov esi, dword [0x5887f0]
je 0x417fc6
xor ecx, ecx
cmp dword [edi + 0xfc], ecx
je 0x417ffb
mov ebx, dword [esi + 0x1dd0]
test ebx, ebx
jle 0x417fba
mov edx, dword [esi + 0x1dd8]
nop
mov eax, dword [edx]
mov ebx, dword [edi + 0xfc]
cmp dword [eax], ebx
mov ebx, dword [esi + 0x1dd0]
je 0x417ff0
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x417fa0
xor ecx, ecx
test ecx, ecx
je 0x417fdc
test byte [ecx + 4], 0x80
je 0x417fdc
push dword [edi + 0xe8]
push dword [edi + 0xe4]
call fcn.004178f0
mov ecx, eax
add esp, 8
lea eax, [edi + 0x1de8]
mov ebx, eax
test ecx, ecx
je 0x418003
mov dword [eax], ecx
mov edx, ecx
mov eax, ecx
jmp 0x418017
mov eax, dword [esi + 0x1dd8]
mov ecx, dword [eax + ecx*4]
jmp 0x417fbc
lea eax, [edi + 0x1de8]
mov ebx, eax
mov eax, dword [eax]
mov edx, eax
test eax, eax
jne 0x418017
mov eax, dword [edi + 0x1dd8]
mov eax, dword [eax]
mov edx, eax
mov dword [ebx], eax
mov ebx, dword [edi + 0x1c58]
test ebx, ebx
je 0x418024
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x1de4], eax
cmp byte [edi + 0x1f5c], 0
je 0x41803b
test ecx, ecx
jne 0x41805a
mov ecx, edx
jmp 0x418056
cmp dword [edi + 0x1c84], 0
je 0x418056
xor eax, eax
cmp byte [eax + esi + 0xec], 0
jne 0x41806e
inc eax
cmp eax, 5
jl 0x418046
test ecx, ecx
je 0x41806e
cmp ecx, dword [edi + 0x1de4]
je 0x41806e
test byte [ecx + 4], 0x80
jne 0x41806e
mov dword [edi + 0x1de4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret