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

Disassembly:
push 0xffffffffffffffff
push 0x4724f8
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2e4]
mov edi, dword [esp + 0x2a4]
mov esi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x154]
push edx
mov dword [esp + 0x2a0], 1
call fcn.004196d0
lea eax, [esp + 0x154]
push eax
sub esp, 0x1c
mov eax, esp
mov ebx, 7
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x3c], esp
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebp
mov dword [esp + 0x3c], eax
mov word [eax], cx
mov byte [esp + 0x2bc], 3
cmp edi, ebp
je 0x431b31
test edi, 0xffff0000
jne 0x431b31
movzx ecx, di
push ecx
call fcn.00406620
jmp 0x431b41
push edi
mov ebx, eax
call fcn.00406760
add esp, 4
mov ebx, 7
mov byte [esp + 0x2bc], 2
call fcn.00433e80
cmp eax, ebp
jne 0x431bc0
lea edx, [esp + 0x154]
push edx
mov byte [esp + 0x2a0], 1
call fcn.00419890
mov esi, 8
cmp dword [esp + 0x2bc], esi
jb 0x431b85
mov eax, dword [esp + 0x2a8]
push eax
call fcn.004593e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2b8], ebp
mov word [esp + 0x2a8], cx
cmp dword [esp + 0x2d8], esi
jb 0x431bb6
mov edx, dword [esp + 0x2c4]
push edx
call fcn.004593e2
add esp, 4
mov eax, 1
jmp 0x4324a5
sub esp, 0x1c
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], ebx
mov dword [edx + 0x10], ebp
mov dword [esp + 0x38], esp
mov word [edx], ax
push ebp
or eax, 0xffffffff
lea ecx, [esp + 0x2c8]
call fcn.004043d0
sub esp, 0x1c
mov edx, esp
mov byte [esp + 0x2d4], 4
xor ecx, ecx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x10], ebp
mov dword [esp + 0x4c], esp
mov word [edx], cx
push ebp
or eax, 0xffffffff
lea ecx, [esp + 0x300]
call fcn.004043d0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2d4], 2
call fcn.004386d0
mov byte [esp + 0x29c], 5
mov eax, dword [esp + 0x34]
push 0x47ca70
xor edi, edi
lea ecx, [esp + 0x28]
call fcn.00403a30
test eax, eax
jne 0x431cd5
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x431c5d
mov edx, dword [esp + 0x24]
push edx
call fcn.004593e2
add esp, 4
lea ecx, [esp + 0x154]
xor eax, eax
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
mov byte [esp + 0x2a0], 1
call fcn.00419890
cmp dword [esp + 0x2bc], esi
jb 0x431c9a
mov edx, dword [esp + 0x2a8]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2b8], ebp
mov word [esp + 0x2a8], ax
cmp dword [esp + 0x2d8], esi
jb 0x431ccb
mov ecx, dword [esp + 0x2c4]
push ecx
call fcn.004593e2
add esp, 4
mov eax, 0x20
jmp 0x4324a5
mov eax, dword [esp + 0x34]
push 0x48340c
mov edi, 1
lea ecx, [esp + 0x28]
call fcn.00403a30
test eax, eax
jne 0x431d7b
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x431d0c
mov edx, dword [esp + 0x24]
push edx
call fcn.004593e2
add esp, 4
lea ecx, [esp + 0x154]
xor eax, eax
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
mov byte [esp + 0x2a0], 1
call fcn.00419890
cmp dword [esp + 0x2bc], esi
jb 0x431d49
mov edx, dword [esp + 0x2a8]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2b8], ebp
mov word [esp + 0x2a8], ax
cmp dword [esp + 0x2d8], esi
jb 0x4324a0
mov ecx, dword [esp + 0x2c4]
push ecx
jmp 0x432498
lea edi, [esp + 0x14]
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], 0x2f
call fcn.0041d330
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov esi, eax
cmp esi, 0xffffffff
je 0x43241b
cmp esi, 0xffffffff
je 0x43241b
mov eax, edx
cmp ecx, 8
jae 0x431db5
mov eax, ebx
cmp word [eax + esi*2 + 2], bp
je 0x43241b
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.00402ba0
lea ecx, [esi + 1]
lea eax, [esp + 0x5c]
mov edx, edi
call fcn.00404ed0
mov edi, eax
lea eax, [esp + 0x2a8]
mov byte [esp + 0x29c], 6
call fcn.00402ba0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x29c], 5
call fcn.004044f0
cmp esi, ebp
jne 0x431e19
push 0x48340c
lea ebx, [esp + 0x28]
call fcn.00406760
add esp, 4
jmp 0x431e45
lea edx, [esp + 0x24]
push edx
mov ecx, esi
lea edi, [esp + 0x60]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x24]
mov byte [esp + 0x29c], 7
call fcn.00402ba0
lea ecx, [esp + 0x5c]
call fcn.004044f0
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], cx
xor edx, edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], dx
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x2a0], 9
call fcn.00401000
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
mov byte [esp + 0x29c], 0xa
call fcn.004044c0
lea ecx, [esp + 0x2a8]
lea esi, [esp + 0x78]
mov byte [esp + 0x29c], 0xb
call fcn.004044c0
mov byte [esp + 0x29c], 0xc
jmp 0x431ed2
add esp, 4
lea esp, [esp]
xor ebp, ebp
lea ecx, [esp + 0x154]
push ecx
sub esp, 0x1c
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], ebp
mov dword [esp + 0x38], esp
mov word [edx], ax
push ebp
or eax, 0xffffffff
lea ecx, [esp + 0x64]
lea esi, [esp + 0x40]
lea edi, [esp + 0x128]
call fcn.004043d0
mov edx, esi
mov ecx, edi
call fcn.00432da0
mov ebx, eax
mov dword [esp + 0x14], ebx
test bl, 2
je 0x432168
cmp dword [esp + 0x2e0], 0x40
jne 0x432168
mov eax, dword [esp + 0x50]
push 0x48340c
mov edi, 1
lea ecx, [esp + 0x44]
call fcn.00403a30
test eax, eax
je 0x43232a
lea edi, [esp + 0x18]
lea ebx, [esp + 0x40]
mov dword [esp + 0x18], 0x2f
call fcn.0041d330
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4320f3
cmp ebp, 0xffffffff
je 0x4320f3
lea ecx, [ebp + 1]
lea eax, [esp + 0x5c]
mov edx, ebx
call fcn.00404ed0
lea ecx, [esp + 0xcc]
push ecx
mov ebx, 0x48340c
mov ecx, eax
mov byte [esp + 0x2a0], 0xd
call fcn.00420980
add esp, 4
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xec]
push ecx
mov ecx, eax
mov byte [esp + 0x2a4], 0xe
call fcn.00420900
add esp, 8
mov edi, eax
mov byte [esp + 0x29c], 0xf
mov ecx, dword [esp + 0x78]
mov ebx, 8
cmp dword [esp + 0x8c], ebx
jae 0x431fe4
lea ecx, [esp + 0x78]
cmp dword [edi + 0x14], ebx
jb 0x431fed
mov eax, dword [edi]
jmp 0x431fef
mov eax, edi
cmp ecx, eax
je 0x43200f
or eax, 0xffffffff
xor ecx, ecx
lea esi, [esp + 0x78]
call fcn.00404050
push 0
or eax, 0xffffffff
mov ecx, edi
mov edx, esi
call fcn.004043d0
cmp dword [esp + 0xfc], ebx
jb 0x432028
mov edx, dword [esp + 0xe8]
push edx
call fcn.004593e2
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], ax
cmp dword [esp + 0xe0], ebx
jb 0x432060
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004593e2
add esp, 4
mov dword [esp + 0xe0], esi
mov bl, 0xc
xor edx, edx
mov esi, 8
mov byte [esp + 0x29c], bl
mov dword [esp + 0xdc], edi
mov word [esp + 0xcc], dx
cmp dword [esp + 0x70], esi
jb 0x432099
mov eax, dword [esp + 0x5c]
push eax
call fcn.004593e2
add esp, 4
test ebp, ebp
je 0x4320e0
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
lea edi, [esp + 0x60]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x40]
mov byte [esp + 0x29c], 0x10
call fcn.00402ba0
mov byte [esp + 0x29c], bl
cmp dword [esp + 0x70], esi
jb 0x431ed0
mov edx, dword [esp + 0x5c]
push edx
call fcn.004593e2
jmp 0x431ec6
push 0x48340c
lea ebx, [esp + 0x44]
call fcn.00406760
jmp 0x431ec6
lea ecx, [esp + 0x78]
call fcn.004044f0
lea ecx, [esp + 0x40]
call fcn.004044f0
lea edi, [esp + 0x104]
call fcn.00401ed0
lea ecx, [esp + 0x94]
call fcn.004044f0
lea ecx, [esp + 0xb0]
call fcn.004044f0
lea ecx, [esp + 0x24]
call fcn.004044f0
lea ecx, [esp + 0x154]
push ecx
mov byte [esp + 0x2a0], 1
call fcn.00419890
lea ecx, [esp + 0x2a8]
call fcn.004044f0
lea ecx, [esp + 0x2c4]
call fcn.004044f0
mov eax, dword [esp + 0x14]
jmp 0x4324a5
cmp ebx, ebp
je 0x4321b8
lea ecx, [esp + 0x78]
call fcn.004044f0
lea ecx, [esp + 0x40]
call fcn.004044f0
lea edi, [esp + 0x104]
call fcn.00401ed0
lea ecx, [esp + 0x94]
call fcn.004044f0
lea ecx, [esp + 0xb0]
call fcn.004044f0
lea ecx, [esp + 0x24]
call fcn.004044f0
lea edx, [esp + 0x154]
push edx
jmp 0x432371
lea edi, [esp + 0x104]
lea eax, [esp + 0xb0]
call fcn.00402ba0
lea edi, [esp + 0x78]
lea eax, [esp + 0x94]
call fcn.00402ba0
cmp dword [esp + 0x140], ebp
jne 0x4321fa
test byte [esp + 0x2e0], 0x20
je 0x4321fa
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x13c], ebp
jne 0x432214
test byte [esp + 0x2e0], 0x40
je 0x432214
or ebx, 1
mov dword [esp + 0x14], ebx
push 0x48340c
lea eax, [esp + 0x98]
push eax
mov eax, 0x47c9bc
call fcn.0041cd70
lea ecx, [esp + 0xcc]
push ecx
mov ebx, 0x47c9bc
lea ecx, [esp + 0xb4]
call fcn.00420980
add esp, 4
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0x2a4], 0x11
call fcn.00420900
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x29c], 0x12
call fcn.00402ba0
lea ecx, [esp + 0x5c]
call fcn.004044f0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x29c], 0xc
call fcn.004044f0
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x60]
push eax
mov ebx, 0x48340c
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x24]
lea edi, [esp + 0x10c]
call fcn.00420980
sub esp, 0x18
mov byte [esp + 0x2bc], 0x13
mov ecx, esp
lea edx, [esp + 0x2c8]
mov dword [esp + 0x38], esp
push edx
push ecx
mov ecx, eax
call fcn.00420900
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.00432da0
lea ecx, [esp + 0x5c]
mov ebx, eax
mov byte [esp + 0x29c], 0xc
call fcn.004044f0
mov esi, dword [esp + 0x20]
cmp ebx, ebp
jne 0x432321
mov eax, esi
call fcn.00402ba0
test byte [esp + 0x2e0], 0x40
je 0x432321
mov ebx, dword [esp + 0x14]
or ebx, 0x10
jmp 0x4323a1
test bl, 2
jne 0x43239d
or ebx, dword [esp + 0x14]
lea ecx, [esp + 0x78]
call fcn.004044f0
lea ecx, [esp + 0x40]
call fcn.004044f0
lea edi, [esp + 0x104]
call fcn.00401ed0
lea ecx, [esp + 0x94]
call fcn.004044f0
lea ecx, [esp + 0xb0]
call fcn.004044f0
lea ecx, [esp + 0x24]
call fcn.004044f0
lea eax, [esp + 0x154]
push eax
mov byte [esp + 0x2a0], 1
call fcn.00419890
lea ecx, [esp + 0x2a8]
call fcn.004044f0
lea ecx, [esp + 0x2c4]
call fcn.004044f0
mov eax, ebx
jmp 0x4324a5
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x4323ab
mov eax, dword [esi]
jmp 0x4323ad
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4323c8
test byte [esp + 0x2e0], 0x40
jne 0x4323c8
or ebx, 2
jmp 0x4323cf
test al, 0x10
jne 0x4323cf
or ebx, 0x18
lea ecx, [esp + 0x78]
call fcn.004044f0
lea ecx, [esp + 0x40]
call fcn.004044f0
lea edi, [esp + 0x104]
call fcn.00401ed0
lea ecx, [esp + 0x94]
call fcn.004044f0
lea ecx, [esp + 0xb0]
call fcn.004044f0
lea ecx, [esp + 0x24]
call fcn.004044f0
lea ecx, [esp + 0x154]
push ecx
jmp 0x432371
mov edi, 8
cmp ecx, edi
jb 0x43242d
push edx
call fcn.004593e2
add esp, 4
lea eax, [esp + 0x154]
xor edx, edx
mov esi, 7
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], dx
mov byte [esp + 0x2a0], 1
call fcn.00419890
cmp dword [esp + 0x2bc], edi
jb 0x43246f
mov ecx, dword [esp + 0x2a8]
push ecx
call fcn.004593e2
add esp, 4
xor edx, edx
mov dword [esp + 0x2bc], esi
mov dword [esp + 0x2b8], ebp
mov word [esp + 0x2a8], dx
cmp dword [esp + 0x2d8], edi
jb 0x4324a0
mov eax, dword [esp + 0x2c4]
push eax
call fcn.004593e2
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004593ed
add esp, 0x28c
ret 0x44