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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f536b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
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 - 0x18], ebx
mov byte [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
push dword [eax + 4]
call fcn.00431660
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [eax], eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 8], eax
mov dword [ebx + 0x10], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x437d56
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437d56
test al, 0x10
jne 0x437d56
lea ecx, [ebp - 0x84]
call fcn.004b0715
mov dword [ebp - 0x84], vtable.CStdioFileT.0
mov byte [ebp - 0x6c], 0
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 1
call fcn.004074c0
mov byte [ebp - 4], 2
mov edi, dword [ebx]
push edi
lea ecx, [ebp - 0x20]
mov esi, 0x4040
call fcn.004021e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x6c], 0
call fcn.004125a0
mov ecx, 0x8040
test al, al
cmovne esi, ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 0x6c], al
mov dword [ebp - 0x68], esi
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x437d0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x64]
push eax
push esi
push edi
lea ecx, [ebp - 0x84]
call fcn.004b09a0
test eax, eax
jne 0x437d6a
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov dword [ebp - 0x64], vtable.CFileException.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x437d44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
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 - 0x50]
mov byte [ebp - 0x11], 1
call fcn.004b029e
push 0x63bfdc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004021e0
mov byte [ebp - 4], 6
jmp 0x437d90
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004122a0
test eax, eax
je 0x437de6
push 0x640d2c
lea ecx, [ebp - 0x1c]
call fcn.004204b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x437d90
js 0x437dd5
push 0x640ca4
push eax
call fcn.005bda07
add esp, 8
test eax, eax
je 0x437dd5
sub eax, dword [ebp - 0x1c]
sar eax, 1
je 0x437d90
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x50]
call fcn.004b04c7
jmp 0x437d90
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437ec4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x437ec4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x48]
xor eax, eax
test edx, edx
setg al
xor esi, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], esi
inc eax
mov dword [ecx + 8], eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
test edx, edx
jle 0x438112
test ecx, ecx
js 0x43812a
cmp ecx, edx
jge 0x43812a
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.004046f0
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xd
cmp dword [edi - 0xc], 0
jl 0x438056
push str._End_
push edi
call fcn.005bda07
add esp, 8
test eax, eax
je 0x437f43
sub eax, edi
sar eax, 1
jns 0x4380f2
cmp dword [edi - 0xc], 0
jl 0x438056
push 0x63e7f4
push edi
call fcn.005bda07
mov esi, eax
add esp, 8
test esi, esi
je 0x438056
sub esi, edi
sar esi, 1
js 0x438056
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404680
push 0x640d2c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call fcn.0040f290
mov eax, dword [edi - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406670
push 0x640d2c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004204b0
mov ebx, dword [ebp - 0x24]
inc dword [ebp - 0x1c]
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x3c], esp
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], esp
lea eax, [esi - 0x10]
push eax
call fcn.004046f0
mov ecx, dword [ebp - 0x34]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
add esp, 4
mov byte [ebp - 4], 0xf
call fcn.00437b10
push str.Status
push esi
call fcn.005be8d5
add esp, 8
test eax, eax
jne 0x438019
push 0xa
push eax
push ebx
call fcn.005bc96e
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ecx + 8], eax
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438056
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
mov byte [ebp - 4], 4
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438073
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x38]
jge 0x43810f
mov edx, dword [ebp - 0x48]
jmp 0x437ef1
add edi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43810f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.004b0878
mov dword [ebp - 4], 4
jmp 0x43819f
call fcn.004a3fa3
push 0x63bfdc
lea ecx, [ebp - 0x20]
call fcn.004021e0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x13
push dword [eax]
lea eax, [ebp - 0x20]
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 - 0x20]
push eax
push 0x4b0
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 - 0x20]
call fcn.00401020
mov eax, 0x438192
ret
cmp esi, 1
jge 0x43826e
push 0x63bfdc
lea ecx, [ebp - 0x20]
call fcn.004021e0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x14
push dword [eax]
lea eax, [ebp - 0x20]
push str.ERROR:_Checkfile_has_no_entries:__s
push eax
call fcn.00404520
add esp, 0xc
lea ecx, [ebp - 0x2c]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x2c]
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 - 0x20]
push eax
push 0x4b7
push str.C:_amintegration_tools_setupishield_sldimdataDownloadData.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 0x14
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 0x43823d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
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 0x43825d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004b02b5
jmp 0x437d1f
mov ecx, dword [ebp - 0x18]
mov al, byte [ebp - 0x11]
mov byte [ecx + 4], al
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004b02b5
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov dword [ebp - 0x64], vtable.CFileException.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4382a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
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