Function at 0x40fbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x469273
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
mov edi, dword [esp + 0x384]
mov eax, dword [esp + 0x38c]
mov edx, dword [esp + 0x398]
mov ebx, dword [esp + 0x380]
mov esi, dword [esp + 0x390]
mov ebp, dword [esp + 0x388]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x394]
mov dword [esp + 0x34], ecx
mov ecx, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], 0
call fcn.00401690
mov ecx, ebp
call fcn.00401690
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [edx], 0
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push 0x46ead0
push 0x46f790
lea ecx, [esp + 0x24]
mov dword [esp + 0x380], 0
call fcn.00409390
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
test eax, eax
jl 0x40fcf9
push 0x470490
push ebx
call fcn.00452137
add esp, 8
test eax, eax
je 0x40fcf9
sub eax, ebx
cmp eax, 0xffffffff
jne 0x410693
cmp dword [ebx - 0xc], 0
jl 0x40fd20
push 0x470450
push ebx
call fcn.00452137
add esp, 8
test eax, eax
je 0x40fd20
sub eax, ebx
cmp eax, 0xffffffff
jne 0x410693
mov ebx, dword [esp + 0x1c]
add ebx, 0xfffffff0
push ebx
mov dword [esi], 0
mov dword [esp + 0x2c], ebx
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [esp + 0x2c], eax
push 1
push 0x46ead0
lea ecx, [esp + 0x34]
mov byte [esp + 0x380], 1
call fcn.00401e60
mov ebx, dword [esp + 0x40]
lea esp, [esp]
push pe_nt_image_headers32
lea eax, [esp + 0x170]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x278]
push ecx
mov ecx, dword [esp + 0x3c]
push pe_nt_image_headers32
lea edx, [esp + 0x80]
push edx
push 3
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.00452e01
lea eax, [esp + 0x90]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fda8
sub eax, edx
je 0x40fe7e
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
call fcn.00402600
mov eax, dword [ebx]
mov edx, dword [eax + 0x7c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
mov byte [esp + 0x37c], 2
call edx
mov dword [esi], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x378], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 0
jne 0x40fea7
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe15
sub eax, edx
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401b90
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
call fcn.0040c680
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x37c], 3
call fcn.004042c0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x378], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 0
jne 0x40fea7
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe90
sub eax, edx
jne 0x40fd60
cmp dword [esi], eax
je 0x41066b
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esi]
call fcn.0040bc80
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0x37c], 4
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [eax - 0xc]
mov ecx, dword [esp + 0x40]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 5
call fcn.00406640
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x37c], 6
call fcn.004042c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x378], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
call fcn.004092a0
mov edx, dword [esp + 0x24]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
mov bl, 7
mov byte [esp + 0x378], bl
test eax, eax
jl 0x4106ec
cmp eax, ecx
jg 0x4106ec
mov ecx, edx
mov al, byte [eax + ecx]
cmp al, 0x5c
je 0x40ff70
push 0x46ead0
lea ecx, [esp + 0x28]
call fcn.004021c0
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004042c0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x40ffd9
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x48]
mov dword [edx], eax
test eax, eax
jne 0x40ffba
mov ecx, dword [esi]
lea eax, [esp + 0x48]
push eax
call fcn.0040bcb0
push eax
mov ecx, edi
mov byte [esp + 0x37c], 8
call fcn.004021a0
lea ecx, [esp + 0x48]
call fcn.004018a0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
jmp 0x4105eb
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
jle 0x410032
mov eax, edx
push 0x5c
push eax
call fcn.00453f31
add esp, 8
test eax, eax
je 0x410032
sub eax, dword [esp + 0x1c]
jne 0x410032
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.00406640
push eax
mov ecx, edi
mov byte [esp + 0x37c], 9
call fcn.004021a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x378], bl
call fcn.004018a0
jmp 0x41003e
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004021a0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00401290
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], ebx
mov byte [esp + 0x378], 0xa
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 1
jmp 0x410090
cmp dword [ebx - 0xc], 0
jle 0x4103a5
push 0x5c
push ebx
call fcn.00453f31
add esp, 8
test eax, eax
je 0x4103a5
sub eax, ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4103a1
mov eax, dword [esp + 0x28]
add eax, esi
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
call fcn.0040c680
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x384], 0xb
call fcn.0040d170
add esp, 0xc
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406640
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x37c], 0xe
call fcn.004042c0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41026b
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x30]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x64]
add eax, esi
push eax
push edx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00406640
push eax
mov ecx, ebp
mov byte [esp + 0x37c], 0xf
call fcn.004042c0
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46f790
push 0x46ead0
mov ecx, ebp
call fcn.00409390
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
sub eax, esi
dec eax
push eax
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x38]
call fcn.0040c680
push eax
mov ecx, edi
mov byte [esp + 0x37c], 0x10
call fcn.004042c0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410236
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
sub eax, dword [edx - 0xc]
mov ecx, esi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040c680
push eax
mov ecx, esi
mov byte [esp + 0x37c], 0x11
call fcn.004042c0
mov eax, dword [esp + 0x4c]
jmp 0x41031b
test al, 0x10
jne 0x41035d
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x30]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x54]
dec eax
push eax
push edx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00406640
push eax
mov ecx, ebp
mov byte [esp + 0x37c], 0x12
call fcn.004042c0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46f790
push 0x46ead0
mov ecx, ebp
call fcn.00409390
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004042c0
mov esi, dword [esp + 0x3c]
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
mov ecx, dword [ebp]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x44]
dec eax
push eax
push edx
mov ecx, esi
call fcn.0040c680
push eax
mov ecx, esi
mov byte [esp + 0x37c], 0x13
call fcn.004042c0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x378], 0xd
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41033f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
sub eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x38]
mov eax, dword [edx - 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
inc dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410389
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x50]
je 0x410594
mov ebx, dword [esp + 0x20]
jmp 0x410090
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
call fcn.0040c680
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x384], 0x14
call fcn.0040d170
lea edx, [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x390], 0x15
call fcn.0040d170
add esp, 0x18
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0x17
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41043b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41056c
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.004042c0
push 0x46f790
push 0x46ead0
mov ecx, ebp
call fcn.00409390
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040c680
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
mov bl, 0x19
push eax
mov byte [esp + 0x384], bl
call fcn.0040d170
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x37c], 0x1a
call fcn.004042c0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x378], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
sub eax, dword [edx - 0xc]
mov ecx, ebx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040c680
push eax
mov ecx, ebx
mov byte [esp + 0x37c], 0x1b
call fcn.004042c0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41054e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
sub eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx + 0x10], 0
je 0x4105b0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4105b0
mov eax, 1
jmp 0x4105b2
xor eax, eax
mov edx, dword [esp + 0x48]
mov dword [edx], eax
test eax, eax
je 0x4105e2
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4105e2
dec eax
push eax
mov ecx, esi
call fcn.004065a0
cmp al, 0x2f
je 0x4105e2
push 0x46f790
mov ecx, esi
call fcn.004021c0
lea ecx, [esp + 0x20]
call fcn.004018a0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
mov byte [esp + 0x378], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41061b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x378], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x378], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41066b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x378], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410693
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x378], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.004517f0
add esp, 0x368
ret 0x1c
push 0x80070057
call fcn.00401090
int3