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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f52c3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push 0
lea ecx, [ebx + 8]
push 0x63bfdc
mov byte [ebx + 4], 0
call fcn.00402090
mov eax, dword [ebx]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
cmp dword [eax - 0xc], 0
je 0x4384f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4384f5
test al, 0x10
jne 0x4384f5
lea ecx, [ebp - 0x90]
call fcn.004b0715
mov dword [ebp - 0x90], vtable.CStdioFileT.0
mov byte [ebp - 0x78], 0
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
call fcn.004074c0
mov byte [ebp - 4], 2
mov edi, dword [ebx]
push edi
lea ecx, [ebp - 0x34]
mov esi, 0x4040
call fcn.004021e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x78], 0
call fcn.004125a0
mov ecx, 0x8040
test al, al
cmovne esi, ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 0x78], al
mov dword [ebp - 0x74], esi
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4384a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x70]
push eax
push esi
push edi
lea ecx, [ebp - 0x90]
call fcn.004b09a0
test eax, eax
jne 0x438509
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov dword [ebp - 0x70], vtable.CFileException.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4384e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
call fcn.004b072f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x11], 1
call fcn.004b029e
push 0x63bfdc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004021e0
mov byte [ebp - 4], 6
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x90]
call fcn.004122a0
test eax, eax
je 0x438586
push 0x640d2c
lea ecx, [ebp - 0x20]
call fcn.004204b0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x438530
js 0x438575
push 0x640ca4
push eax
call fcn.005bda07
add esp, 8
test eax, eax
je 0x438575
sub eax, dword [ebp - 0x20]
sar eax, 1
je 0x438530
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x5c]
call fcn.004b04c7
jmp 0x438530
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438664
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x438664
mov dword [ebp - 4], 4
push 0x63bfdc
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.004021e0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ecx
test eax, eax
jle 0x4389b2
lea esp, [esp]
test ecx, ecx
js 0x4389c3
cmp ecx, eax
jge 0x4389c3
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.004046f0
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0x11
cmp dword [esi - 0xc], 0
jl 0x438964
push str._End_
push esi
call fcn.005bda07
add esp, 8
test eax, eax
je 0x438722
sub eax, esi
sar eax, 1
jns 0x438995
cmp dword [esi - 0xc], 0
jl 0x438964
push 0x63e7f4
push esi
call fcn.005bda07
mov edi, eax
add esp, 8
test edi, edi
je 0x438964
sub edi, esi
sar edi, 1
js 0x438964
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404680
push 0x640d2c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.0040f290
mov eax, dword [esi - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00406670
push 0x640d2c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x13
call fcn.004204b0
mov edi, dword [ebp - 0x24]
push str.Release
push edi
call fcn.005be8d5
add esp, 8
test eax, eax
jne 0x438823
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
lea ecx, [ecx + 8]
push eax
call fcn.00404570
inc dword [ebp - 0x20]
jmp 0x438927
push str.FileSizeBytes
push edi
call fcn.005be8d5
add esp, 8
test eax, eax
jne 0x438874
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404570
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0041d750
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
add esp, 4
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
or ebx, 0xffffffff
jmp 0x438927
push str.CheckSum32
lea ecx, [ebp - 0x24]
call fcn.0040f140
test eax, eax
jne 0x4388ab
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404570
push 0xa
push 0
push dword [ebp - 0x18]
call fcn.005bc986
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
inc dword [ebp - 0x20]
mov dword [ecx + 0x18], eax
jmp 0x438927
push str.TagFileSizeBytes
lea ecx, [ebp - 0x24]
call fcn.0040f140
test eax, eax
jne 0x4388f5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404570
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0041d750
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
or ebx, 0xffffffff
jmp 0x438927
push str.Status
lea ecx, [ebp - 0x24]
call fcn.0040f140
test eax, eax
jne 0x438927
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404570
push 0xa
push 0
push dword [ebp - 0x18]
call fcn.005bc96e
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ecx + 0x28], eax
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438964
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
mov byte [ebp - 4], 0x10
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438981
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [ebp - 0x44]
jge 0x4389b2
mov eax, dword [ebp - 0x54]
jmp 0x4386d0
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4389b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call fcn.004b0878
jmp 0x438a2e
call fcn.004a3fa3
push 0x63bfdc
lea ecx, [ebp - 0x24]
call fcn.004021e0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x16
push dword [eax]
lea eax, [ebp - 0x24]
push str.ERROR:_Unable_to_close_checkfile__s
push eax
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x24]
push eax
push 0x5f3
push str.C:_amintegration_tools_setupishield_sldimdataDownloadData.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp - 0x24]
call fcn.00401020
mov eax, 0x438a2b
ret
mov dword [ebp - 4], 0x10
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x438a51
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
push dword [eax]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [eax + 8]
lea eax, [ebp - 0x24]
push str.CheckFile:___s___s___s___s___s_____s
push eax
call fcn.00404520
add esp, 0x20
lea ecx, [ebp - 0x3c]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
push 0x5f9
push str.C:_amintegration_tools_setupishield_sldimdataDownloadData.cpp
push 0
push 3
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438af5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438b15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
cmp esi, 3
jge 0x438c68
push 0x63bfdc
lea ecx, [ebp - 0x24]
call fcn.004021e0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x19
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push str.ERROR:_Checkfile_contains_only__d_of_3_required_entries:__s
push eax
call fcn.00404520
add esp, 0x10
lea ecx, [ebp - 0x3c]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
push 0x600
push str.C:_amintegration_tools_setupishield_sldimdataDownloadData.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438bb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438bd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438bf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438c17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438c57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004b02b5
jmp 0x4384be
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ecx + 4], al
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438c91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438cb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438cd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438cf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004b02b5
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov dword [ebp - 0x70], vtable.CFileException.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x438d22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
call fcn.004b072f
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret