Function at 0x43a320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c17d
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043a780
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a460
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ebx, str._sres.daw
call fcn.004066b0
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0043b3b0
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 2
call fcn.00439950
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
mov dword [ebp - 0x10], ebx
cmp ebx, eax
jne 0x43a4a3
lea eax, [ebp - 0xd4]
call fcn.0043c780
test eax, eax
jne 0x43a3fc
mov ecx, dword [ebp - 0xd8]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xcc]
lea ecx, [ebp + ecx - 0xd8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x43a3f5
or eax, 4
push 0
call fcn.0042f440
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x30]
call fcn.0041e170
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00472b96
add esp, 4
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0043b4a0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.00471f86
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x43a4cc
cmp eax, dword [esi - 0x10]
jne 0x43a4cc
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x43a504
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x43a6c8
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00472c01
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
mov esi, dword [ebx + 0x10]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x43a537
cmp eax, dword [esi - 0x10]
jne 0x43a537
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x43a56f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x43a6c8
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00472c01
add esp, 0x10
lea ebx, [edi + 0x10]
mov dword [ebp - 0x1c], ebx
mov esi, 1
mov byte [ebp - 4], 5
cmp dword [ebx - 4], esi
jle 0x43a592
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004019d0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 4], esi
jle 0x43a5a9
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004019d0
mov eax, dword [ebp - 0x18]
push ebx
push ecx
push 0x4b1a98
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00436070
add esp, 0xc
push eax
call fcn.00436070
add esp, 0xc
push eax
call fcn.00436070
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0043dad0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x43a603
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x43a603
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x43a623
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x43a61c
or eax, 4
push 0
call fcn.0042f440
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43a643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x15], 0
jne 0x43a6ba
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x15], 0
jne 0x43a68f
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x43a68a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x43a680
mov dword [ebp - 0x10], ecx
jmp 0x43a6b7
mov eax, dword [edx + 4]
cmp byte [eax + 0x15], 0
jne 0x43a6b4
jmp 0x43a6a3
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax + 8]
jne 0x43a6b4
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x43a6a0
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x2c]
jne 0x43a4a0
jmp 0x43a3c3
call fcn.0040ba50
int3