Function at 0x40a660
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5519d4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x5b228c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0041de10
mov ecx, eax
call fcn.0041dde0
push dword [0x5b20ac]
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0
call fcn.00404130
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40a6e3
lock inc dword [eax + 4]
mov eax, dword [ebp - 0xa4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 4], eax
call fcn.00412b80
mov edx, dword [ebp - 0x98]
or edi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 0
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40a722
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40a7f0
call fcn.0046f390
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a7e4
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004174a0
push 3
push 0x566bbc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004174a0
mov byte [ebp - 4], 3
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x13c]
push 0x4dd
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404570
mov esi, eax
push str.ExtractWebViewAndCefRes_InstallHelper::InstallCefRes
push esi
mov byte [ebp - 4], 4
call fcn.00405960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x13c]
call fcn.00405d60
lea ecx, [ebp - 0x28]
call fcn.00404f30
lea ecx, [ebp - 0x40]
call fcn.00404f30
or edi, 0xffffffff
mov dword [ebp - 0x80], 1
jmp 0x40b1a4
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b1ea
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 5
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b1f4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
call fcn.0042ea60
test al, al
mov eax, dword [ebp - 0xa4]
je 0x40a8af
push dword [0x5b209c]
add eax, 0x3c
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.00405500
mov edx, dword [ebp - 0x7c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a88f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [str.wjtXvKNUZ3aFy0N86I72rVt1RyMLRYFDreMMQub1Nz3dj3wztMpnVpxDupFBH3YVK4w_ZEyaB4z9bYfu9iN2A]
test edx, edx
jne 0x40a89d
xor ecx, ecx
jmp 0x40a915
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a8a2
jmp 0x40a911
push dword [0x5b2098]
add eax, 0x3c
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.00405500
mov edx, dword [ebp - 0x7c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [str.wjtXvKNUZ3aFy0N86I72rVt1RyMLRYFDreMMQub1Nz3dj3wztMpnVpxDupFBH3YrwjYEjQupJk]
test edx, edx
jne 0x40a901
xor ecx, ecx
jmp 0x40a915
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a906
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.004157e0
mov eax, dword [ebp - 0x9c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00458d40
add esp, 0xc
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 9
call fcn.00405500
mov edx, dword [ebp - 0x7c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a966
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5b20a4]
mov eax, dword [ebp - 0xa4]
add eax, 0x44
mov dword [ebp - 0x80], 0
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00405ba0
add esp, 0xc
mov eax, dword [0x5b97a0]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x40aa13
push 0x5b20d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5b97a0], 0
jne 0x40aa00
push 0x1c
call fcn.004610bf
mov ecx, eax
add esp, 4
mov dword [ebp - 0x8c], ecx
test ecx, ecx
je 0x40a9f5
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x40a9f7
xor ecx, ecx
xchg dword [ebp - 0x7c], eax
mov dword [0x5b97a0], ecx
push 0x5b20d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5b97a0]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x94]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x9c]
test eax, eax
je 0x40b085
push dword [ebp - 0x94]
call fcn.0046b130
add esp, 4
test eax, eax
je 0x40b085
mov ecx, dword [ebp - 0x74]
cmp dword [ecx], 0
jne 0x40aadb
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
test eax, eax
je 0x40aaf4
push str.HttpInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
push str.HttpUninit
push dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
push str.zlib_uncompress
push dword [ecx]
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
push str.zlib_compress
push dword [ecx]
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
push str.zlib_compressBound
push dword [ecx]
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x40aadb
call eax
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0xc], eax
cmp dword [ecx + 8], 0
je 0x40aaf4
cmp dword [ecx + 4], 0
je 0x40aaf4
cmp dword [ecx + 0xc], 0
je 0x40aaf4
mov eax, 1
jmp 0x40aaf6
xor eax, eax
test eax, eax
je 0x40b085
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x20
mov dword [ebp - 0x8c], eax
call fcn.004610bf
add esp, 4
mov dword [ebp - 0x74], eax
test eax, eax
je 0x40ab9b
mov dword [eax], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b1fe
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x74]
add eax, 0x10
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b208
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x74]
add eax, 0x10
push 0
push 0
push 1
push 0
mov dword [ecx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x10], eax
mov eax, ecx
jmp 0x40ab9d
xor eax, eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
mov dword [ebp - 0x74], 0
call fcn.00403ac0
mov byte [ebp - 4], 0xe
call fcn.004105b0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40aee4
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x84], eax
test eax, eax
je 0x40aee4
mov edx, dword [eax]
mov ecx, eax
push 0
push str.ungzip
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x84]
push 0
push str.gzip
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40aee4
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
mov dword [ebp - 0x84], 0
call fcn.00403b60
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
mov dword [edx + 4], eax
mov ecx, dword [edx + 8]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], ecx
mov dword [edx + 8], eax
test ecx, ecx
je 0x40ac78
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40ac78
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x7c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x40ac75
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + 4]
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x78]
push esi
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x78]
push 0x1e
push str.timeout
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x78]
push edi
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x40aee4
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40aee4
mov ecx, dword [ebp - 0x8c]
push 0x7d00
test ecx, ecx
je 0x40acf2
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push 0
push eax
push 2
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x40acf9
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40aee4
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40aee4
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40ad3a
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40ad3a
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x74]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x40ad3a
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b212
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x80], eax
push 0x564bc8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.004093d0
test al, al
jne 0x40ad7a
push 0
push 0x564bc8
lea ecx, [ebp - 0x80]
call fcn.004157e0
mov byte [ebp - 4], 0x16
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b21c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x84], eax
push 0x564bc8
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.004093d0
test al, al
jne 0x40adc7
push 0
push 0x564bc8
lea ecx, [ebp - 0x84]
call fcn.004157e0
mov byte [ebp - 4], 0x18
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40b226
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x74], eax
push str.res_down_success
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x19
call fcn.004093d0
test al, al
jne 0x40ae0b
push 0x10
push str.res_down_success
lea ecx, [ebp - 0x74]
call fcn.004157e0
mov byte [ebp - 4], 0x1a
call fcn.0044eec0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x84]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x74]
or eax, 0xffffffff
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ae4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x84]
or eax, 0xffffffff
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ae6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x80]
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ae8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x94]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aead
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5b2090]
mov eax, dword [ebp - 0xa4]
add eax, 0x3c
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00405ba0
push eax
mov byte [ebp - 4], 0x1b
call fcn.004111a0
mov edx, dword [ebp - 0x8c]
add esp, 0x10
mov dword [ebp - 0x80], eax
jmp 0x40b14f
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40af0f
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40af0f
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x74]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x40af0f
mov eax, dword [ecx]
call dword [eax + 4]
push 0x564bc8
lea ecx, [ebp - 0x7c]
call fcn.00404130
push 0x564bc8
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xf
call fcn.00404130
push str.res_down_overtime
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00404130
mov byte [ebp - 4], 0x11
call fcn.0044eec0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x84]
or eax, 0xffffffff
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40af83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
or eax, 0xffffffff
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40afa2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7c]
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40afc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b149
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004174a0
mov byte [ebp - 4], 0x13
call fcn.0046f390
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x13c]
push 0x4f8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404570
mov dword [ebp - 0x7c], eax
push str.SyncHttpDownloadFile_fail_
push eax
mov byte [ebp - 4], 0x14
call fcn.00405960
mov eax, dword [ebp - 0x8c]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push dword [ebp - 0x7c]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x13c]
call fcn.00405d60
lea ecx, [ebp - 0x40]
call fcn.00404f30
lea ecx, [ebp - 0x28]
jmp 0x40b144
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b149
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004174a0
mov byte [ebp - 4], 0xc
call fcn.0046f390
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x1d4]
push 0x4f2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404570
mov dword [ebp - 0x7c], eax
push str.InitNet_fail
push eax
mov byte [ebp - 4], 0xd
call fcn.00405960
mov eax, dword [ebp - 0x8c]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push dword [ebp - 0x7c]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1d4]
call fcn.00405d60
lea ecx, [ebp - 0x58]
call fcn.00404f30
lea ecx, [ebp - 0x70]
call fcn.00404f30
mov edx, dword [ebp - 0x94]
mov byte [ebp - 4], 6
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b16b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b1a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa0]
test esi, esi
je 0x40b1cc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40b1cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40b1cc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
int3