Function at 0x419530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0758
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
push eax
mov dword [esp + 0x18], edi
call fcn.0046212f
mov esi, eax
push 1
mov ecx, esi
call fcn.00461ad6
mov ebx, dword [ebp + 8]
push edi
mov ecx, ebx
call fcn.00464616
mov edi, eax
test edi, edi
je 0x41a041
cmp dword [ebx + 0x64], 0
je 0x41a041
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, ebx
call fcn.004645a2
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x20]
push 2
push eax
push 0x102c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4195f6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x40], edx
call fcn.0046d60a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add eax, 0xffffffff
push eax
push ecx
push eax
push edx
mov edx, dword [ebx + 0x58]
push edx
call fcn.00445c30
mov eax, dword [ebx + 0x7c]
add esp, 0x14
cmp eax, 1
jne 0x419a76
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x8c]
xor edx, edx
cmp dword [edi + 0x12c], edx
push eax
setne dl
push ecx
mov eax, esi
mov ecx, 0x4d04b8
push edx
call fcn.00448630
mov eax, dword [edi + 8]
test eax, eax
jne 0x419660
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0x9c]
push eax
push ecx
push 7
jmp 0x41968c
cmp eax, 2
jne 0x419677
mov edx, dword [edi + 0xa0]
mov eax, dword [edi + 0x9c]
push edx
push eax
push 3
jmp 0x41968c
cmp eax, 3
jne 0x419698
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x9c]
push ecx
push edx
push 0x11
mov eax, esi
mov ecx, 0x4d0358
call fcn.00448630
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x4196cc
test esi, esi
jne 0x4196a7
xor eax, eax
jmp 0x4196aa
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xac]
push 3
push 0
push 0
push 0x20
push 0x20
push ecx
mov ecx, dword [edi + 0xb0]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x4196e9
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 4]
push 1
push eax
push ecx
mov ecx, dword [ebx + 0x64]
push edx
push esi
call fcn.0040bf00
mov ecx, dword [ebx + 0x5c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi + 0x60]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [edi + 0xbc]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov ebx, dword [ebx + 0x74]
mov eax, dword [edi + 0x58]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push ebx
lea ebx, [edi + 0xcc]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [edi + 0xe4]
mov dword [esp + 0x34], eax
sub eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov edx, dword [edi + 0xe0]
mov dword [esp + 0x30], edx
fmul dword [edi + 0x30]
mov edx, dword [edi + 0xe8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
fdiv qword [0x4b2868]
call fcn.00484a10
mov edx, dword [edi + 0xdc]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [edi + 0xe0]
mov dword [ecx + 4], edx
mov edx, dword [edi + 0xe4]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0xe8]
push eax
push esi
mov ebx, 0x4d0720
mov dword [ecx + 0xc], edx
call fcn.00448c40
cmp dword [edi + 8], 2
mov ebx, dword [ebp + 8]
jne 0x4197c7
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi + 0x68]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [edi + 0xec]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x78]
mov eax, dword [edi + 0x6c]
add dword [esp + 0x30], 1
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [edi + 8]
test eax, eax
je 0x4197f2
cmp eax, 2
jne 0x41984d
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x41984d
mov eax, 2
cmp dword [ebx + 0x108], eax
jne 0x41984d
mov ecx, dword [edi + 0xfc]
mov edx, dword [edi + 0x100]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x104]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x108]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x419846
push 6
jmp 0x419848
push 5
call fcn.00448ab0
call fcn.00461729
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419867
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x4198ac
push 0x4ae5a4
lea ecx, [esp + 0x1c]
call fcn.00401be0
mov eax, dword [edi + 0x100]
mov ecx, dword [edi + 0xfc]
sub eax, 1
push eax
add ecx, 1
push ecx
push 1
jmp 0x4198d5
cmp eax, 2
jne 0x4198e1
push 0x4ae5ac
lea ecx, [esp + 0x1c]
call fcn.00401be0
mov eax, dword [edi + 0x100]
mov ecx, dword [edi + 0xfc]
sub eax, 1
push eax
add ecx, 1
push ecx
push 7
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0x100]
mov edx, dword [edi + 0x104]
add eax, 0x1e
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x108]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x419986
mov eax, 3
cmp dword [ebx + 0x108], eax
jne 0x419986
mov ecx, dword [edi + 0x10c]
mov edx, dword [edi + 0x110]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x114]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x118]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x41997f
push 6
jmp 0x419981
push 5
call fcn.00448ab0
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x10c]
sub eax, 1
push eax
add ecx, 1
push ecx
push 2
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x419a03
mov eax, 4
cmp dword [ebx + 0x108], eax
jne 0x419a03
mov ecx, dword [edi + 0x11c]
mov edx, dword [edi + 0x120]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x124]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x128]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x4199fc
push 6
jmp 0x4199fe
push 5
call fcn.00448ab0
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x11c]
sub eax, 1
push eax
add ecx, 2
push ecx
push 0
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
cmp dword [edi + 8], 1
jne 0x419a35
mov edi, dword [edi + 0x64]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x419d78
mov ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x8c]
xor eax, eax
cmp dword [edi + 0x12c], eax
push ecx
setne al
push edx
mov ecx, 0x4d04b8
push eax
mov eax, esi
call fcn.00448630
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x9c]
push ecx
push edx
push 9
mov eax, esi
mov ecx, 0x4d0358
call fcn.00448630
mov eax, dword [edi + 0x34]
test eax, eax
je 0x419af5
test esi, esi
jne 0x419ad0
xor ecx, ecx
jmp 0x419ad3
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0xac]
push 3
push 0
push 0
push 0x20
push 0x20
push eax
mov eax, dword [edi + 0xb0]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x419b12
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 4]
push 1
push eax
push ecx
mov ecx, dword [ebx + 0x64]
push edx
push esi
call fcn.0040bf00
mov ecx, dword [ebx + 0x5c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi + 0x60]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [edi + 0xbc]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi + 0x58]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [edi + 0xdc]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x419bb2
mov eax, 2
cmp dword [ebx + 0x108], eax
jne 0x419bb2
mov ecx, dword [edi + 0xfc]
mov edx, dword [edi + 0x100]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x104]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x108]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x419bab
push 6
jmp 0x419bad
push 5
call fcn.00448ab0
lea ecx, [esp + 0x18]
call fcn.00402a40
push 0x4ade74
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 1
call fcn.00401be0
mov eax, dword [edi + 0x100]
mov ecx, dword [edi + 0xfc]
sub eax, 1
push eax
add ecx, 1
push ecx
push 3
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0x100]
mov edx, dword [edi + 0x104]
add eax, 0x1e
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x108]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x419c98
mov eax, 3
cmp dword [ebx + 0x108], eax
jne 0x419c98
mov ecx, dword [edi + 0x10c]
mov edx, dword [edi + 0x110]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x114]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x118]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x419c91
push 6
jmp 0x419c93
push 5
call fcn.00448ab0
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x10c]
sub eax, 1
push eax
add ecx, 1
push ecx
push 2
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x419d15
mov eax, 4
cmp dword [ebx + 0x108], eax
jne 0x419d15
mov ecx, dword [edi + 0x11c]
mov edx, dword [edi + 0x120]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x124]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x128]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x419d0e
push 6
jmp 0x419d10
push 5
call fcn.00448ab0
mov eax, dword [edi + 0x120]
mov edi, dword [edi + 0x11c]
sub eax, 1
push eax
add edi, 2
push edi
push 0
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 3
jne 0x41a041
mov ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x8c]
xor eax, eax
cmp dword [edi + 0x12c], eax
push ecx
setne al
push edx
mov ecx, 0x4d04b8
push eax
mov eax, esi
call fcn.00448630
cmp dword [edi + 8], 1
jne 0x419dbf
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x9c]
push ecx
push edx
push 9
jmp 0x419dcf
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0x9c]
push eax
push ecx
push 7
mov eax, esi
mov ecx, 0x4d0358
call fcn.00448630
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x419e0f
test esi, esi
jne 0x419dea
xor eax, eax
jmp 0x419ded
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xb0]
push 3
push 0
push 0
push 0x20
push 0x20
push ecx
mov ecx, dword [edi + 0xac]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x419e2c
mov edx, dword [edi + 0xb0]
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 4]
push 1
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x64]
push esi
call fcn.0040bf00
mov edx, dword [esi]
mov eax, dword [ebx + 0x5c]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 0x70]
push eax
lea ecx, [edi + 0xbc]
push ecx
lea eax, [edi + 0x60]
mov ecx, esi
call fcn.0040c0b0
mov edx, dword [ebx + 0x70]
push edx
lea eax, [edi + 0xdc]
push eax
lea eax, [edi + 0x58]
mov ecx, esi
call fcn.0040c0b0
mov ecx, dword [esp + 0x14]
cmp dword [ebx + 0x104], ecx
jne 0x419ebe
mov eax, 2
cmp dword [ebx + 0x108], eax
jne 0x419ebe
mov edx, dword [edi + 0xfc]
mov ecx, dword [edi + 0x100]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 0x104]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x108]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, esi
mov ecx, 0x4d06c8
jne 0x419eb7
push 6
jmp 0x419eb9
push 5
call fcn.00448ab0
lea ecx, [esp + 0x18]
call fcn.00402a40
push 0x4ae5b4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 2
call fcn.00401be0
mov ecx, dword [edi + 0x100]
mov eax, dword [edi + 0xfc]
sub ecx, 1
push ecx
add eax, 1
push eax
push 4
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0x104]
mov edx, dword [edi + 0x100]
add eax, 0x1e
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x108]
push ecx
lea eax, [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x60], edx
call fcn.0040c0b0
mov edx, dword [esp + 0x14]
cmp dword [ebx + 0x104], edx
jne 0x419f99
mov eax, 3
cmp dword [ebx + 0x108], eax
jne 0x419f99
mov ecx, dword [edi + 0x10c]
mov edx, dword [edi + 0x110]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x114]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x118]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x419f92
push 6
jmp 0x419f94
push 5
call fcn.00448ab0
mov ecx, dword [edi + 0x110]
mov eax, dword [edi + 0x10c]
sub ecx, 1
push ecx
add eax, 1
push eax
push 2
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x104], eax
jne 0x41a016
mov eax, 4
cmp dword [ebx + 0x108], eax
jne 0x41a016
mov ecx, dword [edi + 0x11c]
mov edx, dword [edi + 0x120]
sub esp, 0x10
cmp dword [ebx + 0x10c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x124]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x128]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, 0x4d06c8
mov eax, esi
jne 0x41a00f
push 6
jmp 0x41a011
push 5
call fcn.00448ab0
mov eax, dword [edi + 0x11c]
mov edi, dword [edi + 0x120]
add eax, 2
sub edi, 1
push edi
push eax
push 0
mov eax, esi
mov ecx, 0x4d06c8
call fcn.00448630
lea ecx, [esp + 0x18]
call fcn.00433b30
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8