Function at 0x40b740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d5e3
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x47d220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x224], ebx
call fcn.00438a20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.screen_test.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b90e
call fcn.0041e880
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b8c7
push 0x5a
push str.d:jenkins.jenkinsworkspacemaster_lu_screentest_screen_test_screen_test_srcmain_wnd.cc
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], al
call fcn.00408520
push 3
push 0x4629c0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
call fcn.00408520
mov byte [ebp - 4], 1
call fcn.0041e880
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0xe3
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00403b50
mov esi, eax
push str.ludashi.dat_Not_Exists:
push esi
mov byte [ebp - 4], 2
call fcn.00402710
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00402710
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00404e10
lea ecx, [ebp - 0x23c]
call fcn.004045a0
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call fcn.004045a0
call fcn.00405650
mov ecx, eax
test ecx, ecx
je 0x40bb20
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4615f8
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.00405430
test al, al
jne 0x40bb00
push 0
push 0x4615f8
mov ecx, ebx
call fcn.00406a90
jmp 0x40bb00
call fcn.00405650
mov ecx, eax
test ecx, ecx
je 0x40bb2a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x220]
push str.zip:__57bd02b1_dfa1_4029_92b7_0f7539cf4b72_s
push eax
call fcn.0040a360
add esp, 0xc
call fcn.0041e880
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ba39
push 0x5a
push str.d:jenkins.jenkinsworkspacemaster_lu_screentest_screen_test_screen_test_srcmain_wnd.cc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], al
call fcn.00408520
push 3
push 0x4629c0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
call fcn.00408520
mov byte [ebp - 4], 6
call fcn.0041e880
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0xea
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00403b50
mov esi, eax
push str.WebResourcesPath:
push esi
mov byte [ebp - 4], 7
call fcn.00402710
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00402710
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.00404e10
lea ecx, [ebp - 0x26c]
call fcn.004045a0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.004045a0
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
push esi
mov dword [ebp - 0x21c], 0
call fcn.004038f0
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov byte [ebp - 4], 8
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x40ba7d
cmp ecx, dword [edi]
jne 0x40ba7d
lock inc dword [eax]
jmp 0x40babb
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x224], edx
test edx, edx
je 0x40bb34
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
inc eax
lea ecx, [eax + eax]
push ecx
lea eax, [edi + 0x10]
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.0040a010
mov edi, dword [ebp - 0x224]
add esp, 0x10
mov edx, dword [ebp - 0x21c]
lea eax, [edi + 0x10]
or edi, 0xffffffff
mov dword [ebx], eax
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40bb00
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431482
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004053f0
push 0x80004005
call fcn.004053f0
call fcn.00406bc0
int3