Function at 0x3249530
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
push 0x34191a0
call edi
push 0x324ac50
call fcn.0328a2b0
push 0x324ace0
call fcn.0328a2c0
push 0x324ac10
call fcn.03282910
add esp, 0xc
call fcn.0325f210
cmp eax, 5
jl 0x324957a
push 0xffffffffffffffff
call fcn.0328a2d0
add esp, 4
mov eax, dword [0x341923c]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test al, 4
je 0x3249606
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test al, 8
jne 0x32495b5
push 0
push 0
push 0
or eax, 8
mov dword [0x3419314], esi
push 0
mov dword [0x341923c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x3419310], eax
inc dword [0x3419314]
push 0x34191a0
call ebx
push 0xffffffffffffffff
push dword [0x3419310]
call ebp
push 0x34191a0
call edi
sub dword [0x3419314], 1
je 0x32495e8
push dword [0x3419310]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x3419314], esi
jne 0x32495fc
push dword [0x3419310]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x341923c]
test al, 4
jne 0x3249590
pop ebp
inc dword [0x34191c8]
and eax, 0xfffffff7
mov ecx, dword [0x34191c0]
mov dword [0x341923c], eax
mov eax, dword [0x34191c4]
cmp ecx, eax
jne 0x3249629
inc eax
mov dword [0x34191c4], eax
mov eax, ecx
inc ecx
mov dword [0x34191c0], ecx
test eax, eax
jne 0x3249801
call fcn.032569e0
call fcn.0326d9a0
push eax
call fcn.0326dcc0
push str.global_state_init
push 0x89
push str..._srcglobal_state.c
push str.__s:_d___s:_first_time_initialization_n
push 2
call fcn.0325f280
push 0xffffffffffffffff
push 0x34191fc
call fcn.0325e480
add esp, 0x20
call fcn.0325c3f0
mov dword [0x34191e0], eax
test eax, eax
je 0x32497f7
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0x10000
push 1
push 0x324a240
push 0
push 0
call esi
mov dword [0x34191d4], eax
test eax, eax
jne 0x32496b3
mov esi, 0x4e38
jmp 0x32497fc
or dword [0x341923c], 1
cmp byte [0x3419270], 0
je 0x32496ea
push 0
push 0x10000
push 0
push 0x324a360
push 0
push 0
call esi
mov dword [0x34191dc], eax
test eax, eax
je 0x32496a9
or dword [0x341923c], 0x200
xor esi, esi
call fcn.03246ca0
push esi
push 0x324a4b0
push 0x10
push 0xffffffffffffffff
push dword [0x34191e0]
call fcn.0327d340
add esp, 0x14
mov dword [0x34191e8], eax
test eax, eax
je 0x32497f7
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x1e
push ecx
push eax
mov dword [esp + 0x18], esi
call fcn.0327d640
push esi
push fcn.0324a660
push 0x10
push 0xffffffffffffffff
push dword [0x34191e0]
call fcn.0327d340
add esp, 0x1c
mov dword [0x34191f0], eax
test eax, eax
je 0x32497f7
push esi
push eax
call fcn.0327d640
push esi
push 0x324a710
push 0x10
push 0xffffffffffffffff
push dword [0x34191e0]
call fcn.0327d340
add esp, 0x1c
mov dword [0x34191ec], eax
test eax, eax
je 0x32497f7
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x708
push ecx
push eax
mov dword [esp + 0x18], esi
call fcn.0327d640
push esi
push 0x324a720
push 0x10
push 0xffffffffffffffff
push dword [0x34191e0]
call fcn.0327d340
add esp, 0x1c
mov dword [0x34191f4], eax
test eax, eax
je 0x32497f7
push esi
push eax
call fcn.0327d640
call fcn.0325ad20
push eax
push str.global_state_init
push 0xbb
push str..._srcglobal_state.c
push str.__s:_d___s:_setup_network_awareness___p_n
push 2
mov dword [0x34192d8], eax
call fcn.0325f280
add esp, 0x20
call fcn.0325cba0
push 0x34191a0
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
mov esi, 0xc
call fcn.0324a7a0
push 0x34191a0
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret