Function at 0x441770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ce36
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp + 8]
call fcn.00442970
movzx eax, al
test eax, eax
je 0x4418cc
mov ecx, dword [ebp - 0x15c]
call fcn.00441620
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a670
mov edx, dword [ebp - 0x15c]
mov byte [edx + 0x25], 1
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00442c10
movzx eax, al
test eax, eax
je 0x441850
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0xc]
test edx, edx
jne 0x441850
mov eax, dword [ebp + 8]
mov cx, word [eax + 8]
mov word [ebp - 0x48], cx
mov edx, 0x3a
mov word [ebp - 0x46], dx
mov eax, 0x5c
mov word [ebp - 0x44], ax
xor ecx, ecx
mov word [ebp - 0x42], cx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.0046a900
movzx ecx, al
test ecx, ecx
je 0x441850
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
mov al, 1
jmp 0x442251
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x24]
call fcn.0044d050
movzx eax, al
test eax, eax
jne 0x441892
mov byte [ebp - 0xbd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044c930
mov al, byte [ebp - 0xbd]
jmp 0x442251
movzx ecx, byte [ebp - 0x1f]
test ecx, ecx
je 0x4418ab
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [edx + 4], ecx
mov byte [ebp - 0xbe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044c930
mov al, byte [ebp - 0xbe]
jmp 0x442251
mov ecx, dword [ebp + 8]
call fcn.00442e20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x441db9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 + 2]
test ecx, ecx
je 0x441db9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040a520
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040a520
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x54]
jae 0x441937
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x54], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
mov word [ecx + eax*2], dx
mov dword [ebp - 0x4c], 6
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 6
jbe 0x44197f
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + eax*2]
mov eax, 6
shl eax, 1
sub edx, eax
mov dword [ebp - 0xd0], edx
mov edx, 0x578484
mov ecx, dword [ebp - 0xd0]
call fcn.004092f0
movzx ecx, al
test ecx, ecx
jne 0x44198c
push str.:_DATA
lea ecx, [ebp - 0x64]
call fcn.0040a920
mov byte [ebp - 0x65], 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xd4], edx
mov ecx, dword [ebp - 0xd4]
call fcn.00442c10
movzx eax, al
test eax, eax
je 0x441a11
cmp dword [ebp - 0x14], 2
je 0x4419c3
cmp dword [ebp - 0x14], 3
jne 0x441a11
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx + 4]
cmp edx, 0x5c
jne 0x441a11
mov ecx, dword [ebp - 0x15c]
call fcn.00441620
mov eax, dword [ebp - 0x15c]
add eax, 0x28
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x14], 2
jne 0x441a0f
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a730
jmp 0x441a2f
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0x15c]
call fcn.00441770
mov byte [ebp - 0x65], al
movzx edx, byte [ebp - 0x65]
test edx, edx
je 0x441d7e
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 0x20]
and ecx, 0xfffffbef
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x15c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x78], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0040a590
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.0040a490
mov byte [ebp - 4], 5
lea edx, [ebp - 0x79]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x78]
call fcn.004415a0
movzx ecx, al
test ecx, ecx
jne 0x441b42
mov byte [ebp - 0xbf], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
push edx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00440fe0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
push eax
call fcn.004b0c50
add esp, 4
mov al, byte [ebp - 0xbf]
jmp 0x442251
movzx ecx, byte [ebp - 0x79]
test ecx, ecx
jne 0x441bea
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0xc0], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
push edx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00440fe0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.004b0c50
add esp, 4
mov al, byte [ebp - 0xc0]
jmp 0x442251
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x94]
call fcn.00409040
movzx edx, al
test edx, edx
je 0x441d32
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 7
jbe 0x441c6b
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
sub edx, 6
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x90]
jae 0x441c6b
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x90], ecx
xor edx, edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x94]
mov word [ecx + eax*2], dx
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a9a0
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
mov edx, dword [ebp - 0x80]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x15c]
mov byte [eax + 0x24], 1
mov byte [ebp - 0xc1], 1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00440fe0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.004b0c50
add esp, 4
mov al, byte [ebp - 0xc1]
jmp 0x442251
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004b0c50
add esp, 4
jmp 0x441a81
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x128]
push edx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x15c]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00441020
movzx ecx, al
test ecx, ecx
je 0x441e02
mov byte [ebp - 0xc2], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc2]
jmp 0x442251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 2
je 0x441e42
cmp dword [ebp - 0x98], 0x35
je 0x441e42
cmp dword [ebp - 0x98], 0x43
je 0x441e42
cmp dword [ebp - 0x98], 0x7b
je 0x441e42
cmp dword [ebp - 0x98], 0xa1
jne 0x442235
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp + 8]
call fcn.00442c70
movzx edx, al
test edx, edx
je 0x441e65
mov dword [ebp - 0x9c], 4
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x441e7f
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x441f19
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
test edx, edx
jne 0x441f19
mov ecx, dword [ebp + 8]
call fcn.00441690
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
je 0x441f14
mov eax, dword [ebp - 0xa0]
and eax, 0x10
je 0x441f14
mov ecx, dword [ebp - 0x15c]
call fcn.00441620
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
xor edx, edx
mov word [ecx], dx
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xa0]
mov dword [eax + 0x20], ecx
mov byte [ebp - 0xc3], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc3]
jmp 0x442251
jmp 0x442235
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
call fcn.00442850
movzx ecx, al
test ecx, ecx
je 0x44200d
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 + 6]
test ecx, ecx
jne 0x44200d
mov ecx, dword [ebp + 8]
call fcn.00441690
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
je 0x442008
mov edx, dword [ebp - 0xa4]
and edx, 0x10
je 0x442008
mov ecx, dword [ebp - 0x15c]
call fcn.00441620
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a670
mov edx, dword [ebp - 0x15c]
add edx, 0x28
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp dword [eax + 4], 2
jbe 0x441fe7
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 4], 2
mov edx, 2
shl edx, 1
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
xor eax, eax
mov word [edx + ecx], ax
mov byte [ebp - 0xc4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc4]
jmp 0x442251
jmp 0x442235
mov ecx, dword [ebp + 8]
call fcn.00442b60
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jbe 0x442235
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
test eax, eax
je 0x442235
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp + 8]
lea ecx, [edx + ecx*2]
call fcn.00442780
test eax, eax
jge 0x442235
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.0040a520
mov byte [ebp - 4], 0xb
push 0x5c
lea ecx, [ebp - 0xb4]
call fcn.00404660
push 0x2a
lea ecx, [ebp - 0xb4]
call fcn.00404660
mov byte [ebp - 0xb5], 0
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x10]
call fcn.00441020
movzx ecx, al
test ecx, ecx
je 0x44214a
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x14c], eax
push 0x5635b4
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.004c8deb
add esp, 8
neg eax
sbb eax, eax
add eax, 1
movzx edx, al
test edx, edx
je 0x442143
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a670
mov byte [ebp - 0xc5], 1
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc5]
jmp 0x442251
mov byte [ebp - 0xb5], 1
mov ecx, dword [ebp + 8]
call fcn.00441690
mov dword [ebp - 0xbc], eax
movzx edx, byte [ebp - 0xb5]
test edx, edx
jne 0x44217f
cmp dword [ebp - 0xbc], 0xffffffff
je 0x442209
mov eax, dword [ebp - 0xbc]
and eax, 0x10
je 0x442209
mov ecx, dword [ebp - 0x15c]
call fcn.00441620
cmp dword [ebp - 0xbc], 0xffffffff
je 0x4421a4
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0xbc]
mov dword [ecx + 0x20], edx
jmp 0x4421b1
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x20], 0x10
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0040a670
mov byte [ebp - 0xc6], 1
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x154]
push edx
call fcn.004b0c50
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc6]
jmp 0x442251
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 0xc7], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440fe0
mov al, byte [ebp - 0xc7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret 4