Function at 0x4166e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x499104]
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 edi, dword [ebp + 0x10]
lea eax, [ebp - 0x2e0]
push 0x208
push 0
push eax
mov dword [ebp - 0x394], edi
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x2e0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.V3update.log
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x2e0]
push eax
call fcn.0042b630
lea ecx, [ebp - 0x371]
call fcn.00416230
mov esi, eax
call fcn.00403230
mov ecx, eax
test ecx, ecx
je 0x4175e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x388]
push esi
mov dword [ebp - 0x388], eax
call fcn.00402cc0
test al, al
jne 0x4167b2
push esi
lea ecx, [ebp - 0x388]
call fcn.0040f8d0
push ecx
lea eax, [ebp - 0x388]
mov ecx, esp
push eax
call fcn.00412eb0
lea eax, [ebp - 0x3a0]
push eax
call fcn.00414a60
mov ecx, dword [0x49f2d8]
add esp, 8
test ecx, ecx
jne 0x416828
push 0x499028
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x49f2d8], 0
jne 0x416817
push 0x34
call fcn.0042e4b5
add esp, 4
test eax, eax
je 0x416805
mov ecx, eax
call fcn.00412410
jmp 0x416807
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x378]
lock or dword [ecx], edx
mov dword [0x49f2d8], eax
push 0x499028
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x49f2d8]
push edi
call fcn.00412460
mov eax, dword [0x49f3f0]
test al, 1
jne 0x416849
or eax, 1
mov dword [0x49f3ec], 0
mov dword [0x49f3f0], eax
mov byte [ebp - 0x379], 0
lea eax, [ebp - 0x39c]
mov dword [ebp - 4], 0
push eax
call fcn.004220bc
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x379]
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x3a8]
push eax
push 0x4156c0
push 0x49f3ec
call fcn.004224c4
add esp, 0x10
test eax, eax
je 0x4175b3
lea eax, [ebp - 0x39c]
mov dword [ebp - 4], 1
push eax
call fcn.004220cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x49f3f8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x378], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41754c
cmp eax, 5
je 0x41754c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x416909
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00413520
add esp, 4
jmp 0x417558
call fcn.00416310
test al, al
jne 0x416a13
call fcn.0042b330
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x4169e0
push 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.cpp
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], al
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], 0
call fcn.0040cbb0
push 0x30
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x484]
call fcn.00406520
mov esi, eax
push str.update__exit
push esi
call fcn.00403b90
add esp, 8
call fcn.0042b330
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x484]
call fcn.00409400
lea ecx, [ebp - 0x310]
call fcn.00406dc0
lea ecx, [ebp - 0x2f8]
call fcn.00406dc0
call fcn.00411b40
lea ecx, [ebp - 0x371]
mov edi, eax
call fcn.004158b0
lea ecx, [ebp - 0x371]
mov esi, eax
call fcn.00415990
push 0
push esi
push 0
push 0
push eax
mov ecx, edi
call fcn.0042c2a0
jmp 0x417553
lea ecx, [ebp - 0x3ec]
call fcn.0041ea70
call fcn.0042b330
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x416d59
mov eax, dword [0x49f484]
test al, 1
jne 0x416a55
or eax, 1
mov dword [0x49f480], 0
mov dword [0x49f484], eax
mov byte [ebp - 0x371], 0
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 4
push eax
call fcn.004220bc
lea eax, [ebp - 0x384]
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x371]
mov dword [ebp - 0x38c], eax
lea eax, [ebp - 0x390]
push eax
push 0x4152e0
push 0x49f480
call fcn.004224c4
add esp, 0x10
test eax, eax
je 0x416eee
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 5
push eax
call fcn.004220cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], 0
push 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.cpp
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], 0
call fcn.0040cbb0
push 1
push 2
lea ecx, [ebp - 0x484]
call fcn.00405ec0
push 0xffffffffffffffff
push 0x47e690
lea ecx, [ebp - 0x310]
call fcn.0040de10
push 0xffffffffffffffff
push 0x47e694
lea ecx, [ebp - 0x310]
mov edi, eax
call fcn.0040de10
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
cmp esi, 0xffffffff
je 0x416c54
lea eax, [esi - 1]
cmp edi, eax
jae 0x416c54
mov eax, dword [ebp - 0x300]
lea edx, [edi + 1]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
cmp eax, edx
jb 0x4175eb
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
cmovae eax, dword [ebp - 0x310]
push ecx
add eax, edx
lea ecx, [ebp - 0x328]
push eax
call fcn.0040cbb0
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
cmovae eax, dword [ebp - 0x328]
push eax
push 0x37
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x314]
add esp, 0x10
cmp edx, 0x10
jb 0x416c37
mov ecx, dword [ebp - 0x328]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416c2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175f0
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
jmp 0x416c67
push 0x37
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00405a00
add esp, 0xc
cmp dword [ebp - 0x2e4], 0x10
lea eax, [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407340
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407340
lea eax, [ebp - 0x484]
push 0x49f488
push eax
call fcn.00407340
add esp, 0x18
call fcn.0042b330
lea ecx, [ebp - 0x484]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x484]
call fcn.00409400
mov edx, dword [ebp - 0x2e4]
cmp edx, 0x10
jb 0x416d04
mov ecx, dword [ebp - 0x2f8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416cfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175f5
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], 0
cmp edx, 0x10
jb 0x416d59
mov ecx, dword [ebp - 0x310]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416d4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175fa
push edx
push ecx
call fcn.0042e19e
add esp, 8
lea ecx, [ebp - 0x3ec]
call fcn.004213e0
call fcn.0042b330
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x4170cb
mov eax, dword [0x49f4ac]
test al, 1
jne 0x416d9b
or eax, 1
mov dword [0x49f4a8], 0
mov dword [0x49f4ac], eax
mov byte [ebp - 0x371], 0
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 8
push eax
call fcn.004220bc
lea eax, [ebp - 0x384]
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x371]
mov dword [ebp - 0x38c], eax
lea eax, [ebp - 0x390]
push eax
push 0x4151a0
push 0x49f4a8
call fcn.004224c4
add esp, 0x10
test eax, eax
je 0x41728e
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 9
push eax
call fcn.004220cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
push 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.cpp
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], 0
call fcn.0040cbb0
push 1
push 2
lea ecx, [ebp - 0x484]
call fcn.00405ec0
push 0xffffffffffffffff
push 0x47e690
lea ecx, [ebp - 0x328]
call fcn.0040de10
push 0xffffffffffffffff
push 0x47e694
lea ecx, [ebp - 0x328]
mov edi, eax
call fcn.0040de10
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
cmp esi, 0xffffffff
je 0x416fc6
lea eax, [esi - 1]
cmp edi, eax
jae 0x416fc6
mov eax, dword [ebp - 0x318]
lea edx, [edi + 1]
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], 0
cmp eax, edx
jb 0x4175ff
jmp 0x416f18
mov dword [ebp - 4], 6
lea eax, [ebp - 0x384]
push eax
call fcn.004220ec
add esp, 4
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x41761a
jmp 0x417604
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
cmovae eax, dword [ebp - 0x328]
push ecx
add eax, edx
lea ecx, [ebp - 0x310]
push eax
call fcn.0040cbb0
cmp dword [ebp - 0x2fc], 0x10
lea eax, [ebp - 0x310]
cmovae eax, dword [ebp - 0x310]
push eax
push 0x39
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x2fc]
add esp, 0x10
cmp edx, 0x10
jb 0x416fa9
mov ecx, dword [ebp - 0x310]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416f9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41761f
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], 0
jmp 0x416fd9
push 0x39
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00405a00
add esp, 0xc
cmp dword [ebp - 0x2e4], 0x10
lea eax, [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407340
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407340
lea eax, [ebp - 0x484]
push 0x49f4b0
push eax
call fcn.00407340
add esp, 0x18
call fcn.0042b330
lea ecx, [ebp - 0x484]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x484]
call fcn.00409400
mov edx, dword [ebp - 0x2e4]
cmp edx, 0x10
jb 0x417076
mov ecx, dword [ebp - 0x2f8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41706c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417624
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], 0
cmp edx, 0x10
jb 0x4170cb
mov ecx, dword [ebp - 0x328]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4170c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417629
push edx
push ecx
call fcn.0042e19e
add esp, 8
lea ecx, [ebp - 0x3ec]
call fcn.00420ee0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x4170f6
push 0xc8
call esi
lea ecx, [ebp - 0x3ec]
call fcn.00420ee0
test eax, eax
je 0x4170e0
lea ecx, [ebp - 0x3ec]
call fcn.00420820
call fcn.0042b330
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x417477
mov eax, dword [0x49f4c0]
test al, 1
jne 0x417138
or eax, 1
mov dword [0x49f4bc], 0
mov dword [0x49f4c0], eax
mov byte [ebp - 0x371], 0
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 0xc
push eax
call fcn.004220bc
lea eax, [ebp - 0x384]
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x371]
mov dword [ebp - 0x38c], eax
lea eax, [ebp - 0x390]
push eax
push 0x415580
push 0x49f4bc
call fcn.004224c4
add esp, 0x10
test eax, eax
je 0x4174b9
lea eax, [ebp - 0x384]
mov dword [ebp - 4], 0xd
push eax
call fcn.004220cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
push 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.cpp
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0xf
mov byte [ebp - 0x370], 0
call fcn.0040cbb0
push 1
push 2
lea ecx, [ebp - 0x51c]
call fcn.00405ec0
push 0xffffffffffffffff
push 0x47e690
lea ecx, [ebp - 0x340]
call fcn.0040de10
push 0xffffffffffffffff
push 0x47e694
lea ecx, [ebp - 0x340]
mov ebx, eax
call fcn.0040de10
push 0x64
mov edi, eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
cmp edi, 0xffffffff
je 0x41734b
lea eax, [edi - 1]
cmp ebx, eax
jae 0x41734b
mov eax, dword [ebp - 0x330]
lea edx, [ebx + 1]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
mov byte [ebp - 0x358], 0
cmp eax, edx
jb 0x41762e
jmp 0x41729a
mov dword [ebp - 4], 0xa
jmp 0x416ef5
sub edi, ebx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x340]
cmovae eax, dword [ebp - 0x340]
push ecx
add eax, edx
lea ecx, [ebp - 0x358]
push eax
call fcn.0040cbb0
cmp dword [ebp - 0x344], 0x10
lea eax, [ebp - 0x358]
cmovae eax, dword [ebp - 0x358]
push eax
push 0x40
lea eax, [ebp - 0xd8]
push str.__4d___s_
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x344]
add esp, 0x10
cmp edx, 0x10
jb 0x41732e
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417633
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
mov byte [ebp - 0x358], 0
jmp 0x417361
push 0x40
lea eax, [ebp - 0xd8]
push str.__4d_
push eax
call fcn.00405a00
add esp, 0xc
cmp dword [ebp - 0x35c], 0x10
lea eax, [ebp - 0x370]
cmovae eax, dword [ebp - 0x370]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00407340
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00407340
lea eax, [ebp - 0x51c]
push 0x49f4c4
push eax
call fcn.00407340
add esp, 0x18
call fcn.0042b330
lea ecx, [ebp - 0x51c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x51c]
call fcn.00409400
mov edx, dword [ebp - 0x35c]
cmp edx, 0x10
jb 0x417401
mov ecx, dword [ebp - 0x370]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4173f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417638
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov edx, dword [ebp - 0x32c]
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0xf
mov byte [ebp - 0x370], 0
cmp edx, 0x10
jb 0x417456
mov ecx, dword [ebp - 0x340]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41744c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41763d
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov ebx, dword [ebp - 0x378]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
lea ecx, [ebp - 0x3ec]
call fcn.00420480
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x47e910
mov word [ecx], ax
call fcn.0040cca0
push ecx
mov edi, esp
call fcn.00403230
mov ecx, eax
test ecx, ecx
je 0x417642
jmp 0x4174c5
mov dword [ebp - 4], 0xe
jmp 0x416ef5
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x394]
add eax, 0x10
mov ecx, edi
mov dword [edi], eax
call fcn.00402cc0
test al, al
jne 0x4174ed
push dword [ebp - 0x394]
mov ecx, edi
call fcn.0040f8d0
lea ecx, [ebp - 0x3ec]
call fcn.00420ef0
push 0xbb8
call esi
cmp dword [0x49f2d8], 0
je 0x417538
push 0x499028
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x49f2d8]
test ecx, ecx
je 0x41752d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x49f2d8], 0
push 0x499028
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3ec]
call fcn.0041eaf0
jmp 0x417553
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042b840
mov edx, dword [ebp - 0x3a0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417578
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x388]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x417593
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0042e446
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x39c]
mov dword [ebp - 4], 2
push eax
call fcn.004220ec
add esp, 4
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x41761a
sub esp, 8
lea eax, [ebp - 0x39c]
mov ecx, esp
jmp 0x41760f
push 0x80004005
call fcn.00402ca0
call fcn.0040c660
call fcn.0045156a
call fcn.0045156a
call fcn.0045156a
call fcn.0040c660
sub esp, 8
lea eax, [ebp - 0x384]
mov ecx, esp
push eax
call fcn.004028d0
call fcn.00403a30
call fcn.00422502
call fcn.0045156a
call fcn.0045156a
call fcn.0045156a
call fcn.0040c660
call fcn.0045156a
call fcn.0045156a
call fcn.0045156a
push 0x80004005
call fcn.00402ca0
int3