Function at 0x437ee0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x597546
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x260]
xor ebx, ebx
mov dword [esp + 0x258], 1
cmp dword [esp + 0x270], ebx
jne 0x437f45
cmp dword [esp + 0x274], ebx
je 0x4381d0
cmp dword [esp + 0x278], ebx
jne 0x437f5b
cmp dword [esp + 0x27c], ebx
je 0x4381d0
mov eax, dword [esp + 0x26c]
lea ecx, [eax - 1]
cmp ecx, 3
ja 0x4381d0
cmp eax, 2
jne 0x437fbd
mov eax, dword [esp + 0x268]
cmp dword [eax - 0xc], ebx
jl 0x437fa0
push str.http
push eax
call fcn.004f7373
add esp, 8
cmp eax, ebx
je 0x437fa0
sub eax, dword [esp + 0x268]
sar eax, 1
jns 0x43803c
lea ecx, [esp + 0x264]
call fcn.00406760
lea ecx, [esp + 0x268]
call fcn.00406760
jmp 0x438228
cmp eax, 1
jne 0x43803c
push 0x104
lea edx, [esp + 0x48]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x44]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
mov ecx, 0x5d74e0
call fcn.004066b0
lea eax, [esp + 0x44]
push eax
push str._sSoftMgrSoftManager.exe
lea edi, [esp + 0x20]
mov byte [esp + 0x260], 2
call fcn.00407710
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, edi
test eax, eax
jne 0x43802f
call fcn.00406760
jmp 0x437fa0
mov byte [esp + 0x258], 1
call fcn.00406760
cmp dword [ebp + 0x224], ebx
lea esi, [ebp + 0x224]
jne 0x438088
mov edx, dword [esp + 0x264]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438088
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0x5d83e0
mov ecx, dword [esp + 0x26c]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
call fcn.0040a470
add esp, 8
mov edi, eax
call fcn.0040a740
mov ecx, dword [esi]
cmp ecx, ebx
je 0x437fa0
lea edx, [esp + 0x2c]
xor eax, eax
push edx
push 0x18
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
mov dword [ebp + 0x25c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x274]
mov dword [ebp + 0x260], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x270]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
je 0x437fa0
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x437fa0
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [esp + 0x274]
push eax
mov eax, dword [esp + 0x274]
push ecx
push edx
push eax
lea ecx, [ebp + 0x228]
push ecx
call fcn.00434980
lea edi, [ebp + 0x238]
lea eax, [esp + 0x268]
call fcn.00406fe0
mov eax, dword [esp + 0x264]
mov edx, dword [esp + 0x26c]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x23c], edx
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049c799
add esp, 8
lea edi, [ebp + 0x7e8]
mov byte [esp + 0x258], 3
call fcn.00406fe0
lea ecx, [esp + 0x18]
call fcn.00406760
lea ecx, [esp + 0x264]
call fcn.00406760
lea ecx, [esp + 0x268]
call fcn.00406760
mov eax, 1
jmp 0x43822a
mov byte [esp + 0x258], bl
mov eax, dword [esp + 0x264]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4381fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
mov eax, dword [esp + 0x268]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438228
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004f673f
add esp, 0x248
ret 0x20