Function at 0x42c870
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4601ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x3c], ecx
push 1
xor edi, edi
push edi
push 0x464f38
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], edi
call fcn.0040b150
push eax
push edi
lea ecx, [esp + 0x140]
call fcn.00401cd0
lea ecx, [esp + 0x10]
call fcn.00401c80
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov byte [esp + 0x130], 1
lea esp, [esp]
push 1
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x28], 0x2f
call fcn.00405080
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42ca27
cmp ebp, 0xffffffff
je 0x42ca27
push ebp
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x140]
call fcn.00405870
mov edx, dword [ebx + 4]
lea edi, [ebx + 4]
push eax
push edx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call fcn.00402700
push 1
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004027a0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x90], 0x10
mov byte [esp + 0x130], 1
jb 0x42c96c
mov eax, dword [esp + 0x7c]
push eax
call fcn.0044b92d
add esp, 4
xor edi, edi
inc ebp
push ebp
lea ecx, [esp + 0x44]
push ecx
mov ebx, 0xf
lea ecx, [esp + 0x140]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], edi
mov byte [esp + 0x84], 0
call fcn.00405900
mov esi, eax
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x13c]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0x130], 3
jae 0x42c9c4
lea ecx, [esp + 0x13c]
cmp dword [esi + 0x18], ebp
jb 0x42c9ce
mov eax, dword [esi + 4]
jmp 0x42c9d1
lea eax, [esi + 4]
cmp ecx, eax
je 0x42c9f4
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x140]
call fcn.00401cd0
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x144]
call fcn.004022a0
cmp dword [esp + 0x58], ebp
mov byte [esp + 0x130], 1
jb 0x42ca0f
mov edx, dword [esp + 0x44]
push edx
call fcn.0044b92d
add esp, 4
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
xor edi, edi
jmp 0x42c8e0
mov eax, dword [esp + 0x14c]
push edi
push 0x462398
push eax
push edi
lea ecx, [esp + 0x148]
call fcn.00401450
test eax, eax
je 0x42ca78
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x138]
push ecx
lea ebp, [ebx + 4]
push edx
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402700
push 1
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004027a0
mov ebx, dword [esp + 0x14]
mov dword [ebp], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov esi, dword [esp + 0x154]
mov ecx, dword [esp + 0x3c]
push 1
push esi
lea eax, [esp + 0x64]
push eax
call fcn.00429ef0
mov ecx, dword [esp + 0x70]
push edi
push 0x462398
push ecx
push edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 4
call fcn.00401450
test eax, eax
jne 0x42cb17
mov eax, dword [esp + 0x74]
mov esi, 0x10
cmp eax, esi
jb 0x42cacb
mov edx, dword [esp + 0x60]
push edx
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00402a30
mov eax, dword [esp + 0x14]
push eax
call fcn.0044b92d
mov eax, dword [esp + 0x154]
add esp, 4
cmp eax, esi
jb 0x42cb0d
mov ecx, dword [esp + 0x13c]
push ecx
call fcn.0044b92d
add esp, 4
mov eax, 1
jmp 0x42d4d2
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.004022a0
mov eax, dword [ebx]
cmp eax, ebx
mov byte [esp + 0x130], 5
mov dword [esp + 0x3c], eax
je 0x42ce82
nop
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
add eax, 8
push 0
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.004022a0
push 0x46239c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xf0]
push ecx
mov byte [esp + 0x13c], 6
call fcn.0040bf60
lea edx, [esp + 0x4c]
push edx
push eax
lea eax, [esp + 0x120]
push eax
mov byte [esp + 0x148], 7
call fcn.004154a0
mov ecx, dword [eax + 0x18]
add esp, 0x18
cmp ecx, 0x10
jb 0x42cbc4
mov eax, dword [eax + 4]
jmp 0x42cbc7
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp dword [esp + 0x124], 0x10
jb 0x42cbea
mov ecx, dword [esp + 0x110]
push ecx
call fcn.0044b92d
add esp, 4
mov eax, dword [esp + 0x100]
xor edi, edi
cmp eax, 0x10
mov ebp, 0xf
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], edi
mov byte [esp + 0x110], 0
mov byte [esp + 0x130], 6
jb 0x42cc2b
mov edx, dword [esp + 0xec]
push edx
call fcn.0044b92d
add esp, 4
cmp ebx, 0xffffffff
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], edi
mov byte [esp + 0xec], 0
je 0x42ccd4
test bl, 0x10
je 0x42cf5a
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xd0]
push 0x46239c
push ecx
call fcn.0040c010
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 8
call fcn.004051c0
mov eax, dword [esp + 0xe4]
mov ebx, 0x10
cmp eax, ebx
jb 0x42cca2
mov edx, dword [esp + 0xd0]
push edx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x58], ebx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], edi
mov byte [esp + 0xd0], 0
mov byte [esp + 0x130], 5
jb 0x42ce5f
mov eax, dword [esp + 0x44]
push eax
jmp 0x42ce57
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x120], esp
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x64]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], edi
push edx
mov byte [ecx + 4], 0
call fcn.004022a0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x140], esp
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], edi
push eax
mov byte [esp + 0x174], 9
mov byte [ecx + 4], 0
call fcn.004022a0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
mov byte [esp + 0x16c], 6
call fcn.0042c440
mov edx, dword [esp + 0x8c]
push edi
push 0x462398
push edx
push edi
lea ecx, [esp + 0x88]
mov byte [esp + 0x140], 0xa
call fcn.00401450
test eax, eax
je 0x42d0f6
push 1
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
call fcn.0040c980
mov ecx, dword [eax + 0x14]
push 1
push 0x464218
push ecx
xor edi, edi
push edi
mov ecx, eax
mov byte [esp + 0x140], 0xb
call fcn.00401450
test eax, eax
mov eax, dword [esp + 0xc8]
setne bl
cmp eax, 0x10
mov byte [esp + 0x130], 0xa
jb 0x42cdc0
mov edx, dword [esp + 0xb4]
push edx
call fcn.0044b92d
add esp, 4
mov ebp, 0xf
test bl, bl
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
mov ebx, 0x10
je 0x42ce0d
cmp dword [esp + 0x90], ebx
mov eax, dword [esp + 0x7c]
jae 0x42cdf5
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42cff9
test al, 0x10
je 0x42d0a6
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x24]
call fcn.004026b0
cmp dword [esp + 0x90], ebx
jb 0x42ce31
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
mov byte [esp + 0x130], 5
jb 0x42ce5f
mov edx, dword [esp + 0x44]
push edx
call fcn.0044b92d
add esp, 4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
mov dword [esp + 0x3c], eax
jne 0x42cb50
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
call fcn.004022a0
mov edx, dword [esp + 0x15c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 0xc
mov dword [edx], 1
call fcn.0040c6f0
mov eax, dword [esp + 0x34]
push edi
push 0x462398
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00401450
test eax, eax
je 0x42d41d
xor edi, edi
mov ebp, 0x10
xor ebx, ebx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42d1f7
mov ecx, dword [esi + 0x28]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x42d1f7
mov eax, dword [esi + 0x24]
add eax, ebx
push eax
lea ecx, [esp + 0xb4]
call fcn.004024c0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 0xd
call fcn.0040c6f0
cmp dword [esi + 0xc8], ebp
jb 0x42d1a5
mov eax, dword [esi + 0xb4]
jmp 0x42d1ab
cmp dword [esp + 0x58], 0x10
jb 0x42cf6e
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x42cf8f
mov edx, dword [esp + 0x24]
push edx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x42cfb0
mov eax, dword [esp + 0x60]
push eax
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00402a30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044b92d
mov eax, dword [esp + 0x154]
add esp, 4
cmp eax, 0x10
jb 0x42cfef
mov edx, dword [esp + 0x13c]
push edx
call fcn.0044b92d
add esp, 4
mov eax, 0x18
jmp 0x42d4d2
cmp dword [esp + 0x90], ebx
jb 0x42d00f
mov eax, dword [esp + 0x7c]
push eax
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
jb 0x42d035
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x42d055
mov edx, dword [esp + 0x24]
push edx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x42d075
mov eax, dword [esp + 0x60]
push eax
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00402a30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044b92d
mov eax, dword [esp + 0x154]
add esp, 4
cmp eax, ebx
jmp 0x42d4bb
lea ecx, [esp + 0x78]
call fcn.00401fd0
lea ecx, [esp + 0x40]
call fcn.00401fd0
lea ecx, [esp + 0x20]
call fcn.00401fd0
lea ecx, [esp + 0x5c]
call fcn.00401fd0
lea ecx, [esp + 0x10]
call fcn.00402a30
mov eax, dword [esp + 0x14]
push eax
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x138]
call fcn.00401fd0
mov eax, 0x18
jmp 0x42d4d2
mov eax, dword [esp + 0x90]
mov esi, 0x10
cmp eax, esi
jb 0x42d113
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x58], esi
jb 0x42d126
mov edx, dword [esp + 0x44]
push edx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x42d146
mov eax, dword [esp + 0x24]
push eax
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x42d166
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00402a30
mov edx, dword [esp + 0x14]
push edx
call fcn.0044b92d
mov eax, dword [esp + 0x154]
add esp, 4
cmp eax, esi
jb 0x42d4cd
mov eax, dword [esp + 0x13c]
push eax
jmp 0x42d4c5
lea eax, [esi + 0xb4]
push eax
push 0x465d68
lea ecx, [esp + 0xb8]
call fcn.0040c830
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.004216d0
add esp, 8
test al, al
jne 0x42d329
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 0xc
call fcn.00401fd0
inc edi
add ebx, 0x50
jmp 0x42cef4
mov edi, dword [esi + 0xac]
test edi, edi
je 0x42d2bd
add edi, 0x20
mov ecx, edi
xor ebp, ebp
call fcn.00401100
test eax, eax
jbe 0x42d2bd
xor ebx, ebx
jmp 0x42d220
mov edi, dword [edi + 4]
lea eax, [edi + ebx]
push eax
lea ecx, [esp + 0xd0]
call fcn.004024c0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x130], 0xe
call fcn.0040c6f0
cmp dword [esi + 0xc8], 0x10
jb 0x42d258
mov eax, dword [esi + 0xb4]
jmp 0x42d25e
lea eax, [esi + 0xb4]
push eax
push 0x465d68
lea ecx, [esp + 0xd4]
call fcn.0040c830
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.004216d0
add esp, 8
test al, al
jne 0x42d34c
lea ecx, [esp + 0xcc]
mov byte [esp + 0x130], 0xc
call fcn.00401fd0
mov eax, dword [esi + 0xac]
lea edi, [eax + 0x20]
mov ecx, edi
inc ebp
add ebx, 0x50
call fcn.00401100
cmp ebp, eax
jb 0x42d220
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0040b680
cmp eax, 0xffffffff
je 0x42d3a6
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x28]
call fcn.00405870
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 0xf
call fcn.004026b0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x130], 0xc
call fcn.00401fd0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x15c]
push 0
push 0x462398
push ecx
mov dword [eax], 0
push 0
jmp 0x42ceda
mov esi, dword [esi + 0x24]
lea eax, [edi + edi*4]
shl eax, 4
add eax, esi
mov esi, dword [esp + 0x158]
push eax
mov ecx, esi
call fcn.00403300
lea ecx, [esp + 0xb0]
jmp 0x42d377
mov esi, dword [esi + 0xac]
add esi, 0x20
mov esi, dword [esi + 4]
lea ebp, [ebp + ebp*4]
shl ebp, 4
add ebp, esi
mov esi, dword [esp + 0x158]
push ebp
mov ecx, esi
call fcn.00403300
lea ecx, [esp + 0xcc]
mov byte [esp + 0x130], 0xc
call fcn.00401fd0
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.004026b0
mov eax, dword [esp + 0x15c]
cmp dword [eax], 0
jne 0x42d3e3
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x42d3e3
lea ecx, [esp + 0x94]
call fcn.00401fd0
lea ecx, [esp + 0x20]
call fcn.00401fd0
lea ecx, [esp + 0x5c]
call fcn.00401fd0
lea ecx, [esp + 0x10]
call fcn.00403000
lea ecx, [esp + 0x138]
call fcn.00401fd0
mov eax, 1
jmp 0x42d4d2
lea ecx, [esp + 0x94]
call fcn.00401fd0
lea ecx, [esp + 0x20]
call fcn.00401fd0
lea ecx, [esp + 0x5c]
call fcn.00401fd0
lea ecx, [esp + 0x10]
call fcn.00403000
lea ecx, [esp + 0x138]
call fcn.00401fd0
xor eax, eax
jmp 0x42d4d2
mov eax, dword [esp + 0xac]
mov esi, 0x10
cmp eax, esi
jb 0x42d43d
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0044b92d
add esp, 4
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, esi
mov ebx, 0xf
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
jb 0x42d46f
mov edx, dword [esp + 0x24]
push edx
call fcn.0044b92d
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x42d48f
mov eax, dword [esp + 0x60]
push eax
call fcn.0044b92d
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00402a30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044b92d
mov eax, dword [esp + 0x154]
add esp, 4
cmp eax, esi
jb 0x42d4cd
mov edx, dword [esp + 0x13c]
push edx
call fcn.0044b92d
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 0x28