Function at 0x4029f5
Capabilities:
Create thread
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
mov esi, dword [0x40b408]
push edi
xor ebx, ebx
push 9
xor eax, eax
pop ecx
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
lea esi, [esi + 0x40b408]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
stosd dword es:[edi], eax
cmp esi, ebx
je 0x402f9e
push dword [0x40b40c]
mov ecx, esi
xor eax, eax
call fcn.004085d9
pop ecx
cmp eax, dword [0x40b430]
jne 0x402f9e
push str._:G_
mov eax, esi
call fcn.004062a6
pop ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x40b440], eax
cmp ecx, ebx
je 0x402f9e
push ebx
push 0x31
call fcn.00406347
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004094fe
test byte [esi], 1
pop ecx
je 0x402ad4
push 0x20
lea eax, [esp + 0x64]
push eax
push 0x58
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x402aca
mov eax, dword [esp + 0x60]
shr eax, 9
and eax, 1
jmp 0x402acc
xor eax, eax
cmp eax, ebx
jne 0x402ef0
lea esi, [esp + 0x34]
call fcn.00402876
push ebx
push 0x43
call fcn.00406347
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x402b01
mov eax, esi
push eax
push edi
call fcn.0040271b
pop ecx
pop ecx
test eax, eax
jne 0x402b01
call fcn.00402876
push edi
call fcn.004039da
pop ecx
call fcn.00403e39
mov dword [esp + 0x5c], eax
cmp eax, ebx
mov eax, dword [esp + 0x4c]
jne 0x402b1d
mov eax, dword [esp + 0x48]
push dword [esp + 0x38]
push eax
call fcn.00403772
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0xc], esi
cmp esi, ebx
je 0x402ef0
push esi
call fcn.004028ca
pop ecx
call fcn.00405930
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x402f01
call fcn.00405930
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x402ef0
mov dword [esp + 0x24], esi
lea esi, [esp + 0x1c]
cmp dword [esp + 0x5c], ebx
je 0x402be6
push 1
call fcn.00404ea5
pop ecx
test eax, eax
je 0x402ef0
push ebx
call fcn.00404f7a
pop ecx
test eax, eax
je 0x402ba3
cmp dword [esp + 0x34], ebx
jne 0x402ba3
call fcn.004049d3
test eax, eax
je 0x402ba3
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x18]
test byte [esi], 8
je 0x402bc0
cmp dword [esp + 0x34], ebx
je 0x402bb8
cmp dword [esp + 0x40], ebx
je 0x402bc0
push 0x2a
call fcn.00404dbe
pop ecx
test byte [esi], 0x10
je 0x402c88
cmp dword [esp + 0x34], ebx
je 0x402bd9
cmp dword [esp + 0x44], ebx
je 0x402c88
push 0x2b
call fcn.00404dbe
pop ecx
jmp 0x402c88
push ebx
call fcn.00404ea5
pop ecx
test eax, eax
jne 0x402c62
push 1
call fcn.00404f7a
pop ecx
test eax, eax
je 0x402ef0
mov esi, dword [esp + 0x18]
test byte [esi], 4
je 0x402c1d
cmp dword [esp + 0x34], ebx
jne 0x402c1d
call fcn.0040242f
test eax, eax
jne 0x402ef0
test byte [esi], 2
je 0x402ef0
cmp dword [esp + 0x34], ebx
jne 0x402ef0
push 0x32
pop esi
call fcn.00404944
test eax, eax
je 0x402ef0
push 1
dec esi
call fcn.00404f7a
pop ecx
test eax, eax
je 0x402ef0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jne 0x402c40
jmp 0x402ef0
cmp dword [esp + 0x34], ebx
jne 0x402c98
push 1
call fcn.00404f7a
pop ecx
test eax, eax
je 0x402c88
call fcn.0040489e
test eax, eax
je 0x402c88
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x34], ebx
jne 0x402c98
call fcn.00402946
call fcn.00401236
push 0x2c
call fcn.00404dbe
pop ecx
cmp dword [esp + 0x34], ebx
je 0x402ccc
cmp dword [esp + 0x58], ebx
je 0x402ccc
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.00403c7a
push eax
push 1
call fcn.00401894
mov edi, eax
mov dword [esp + 0x40], edi
jmp 0x402d04
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push dword [esi]
call fcn.00403c7a
push eax
push ebx
call fcn.00401894
mov edi, eax
add esp, 0x10
lea eax, [esp + 0x34]
push eax
push dword [esi]
mov dword [esp + 0x38], edi
call fcn.00403c7a
push eax
push 1
call fcn.00401894
mov dword [esp + 0x20], eax
add esp, 0x10
cmp edi, ebx
je 0x402ef0
push dword [esp + 0x28]
push dword [esp + 0x10]
push ebx
push ebx
push ebx
push 0x4022ee
call fcn.004024c2
add esp, 0x18
mov dword [esp + 0x80], eax
cmp eax, ebx
je 0x402d3b
xor esi, esi
inc esi
mov dword [esp + 0x14], esi
jmp 0x402d3d
mov esi, ebx
cmp dword [esp + 0x34], ebx
jne 0x402e17
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push 0x40239a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402eec
inc esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0x50], ebx
je 0x402da3
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x58]
push dword [esp + 0x1c]
push edi
push 0x401bbf
call fcn.004024c2
add esp, 0x18
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402da3
inc esi
mov dword [esp + 0x14], esi
push dword [esp + 0x2c]
push dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edi
push 0x402161
call fcn.004024c2
add esp, 0x18
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402dce
inc esi
mov dword [esp + 0x14], esi
push dword [esp + 0x28]
push dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edi
push 0x401a76
call fcn.004024c2
push dword [esp + 0x40]
mov dword [esp + 0x3c], eax
push dword [esp + 0x28]
push ebx
push dword [esp + 0x34]
push edi
push 0x401cc5
call fcn.004024c2
add esp, 0x30
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402e39
inc esi
mov dword [esp + 0x14], esi
jmp 0x402e39
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x58]
push dword [esp + 0x1c]
push edi
push 0x401bbf
call fcn.004024c2
add esp, 0x18
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], ebx
je 0x402e4b
push 0xffffffffffffffff
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x28]
call fcn.00405962
test eax, eax
jne 0x402e97
cmp dword [esp + 0x34], ebx
je 0x402e64
cmp dword [esp + 0x3c], ebx
je 0x402e69
call section..text
cmp dword [esp + 0x34], ebx
jne 0x402e74
call fcn.00402946
mov eax, dword [esp + 0x18]
test byte [eax], 8
je 0x402e97
cmp dword [esp + 0x34], ebx
je 0x402e89
cmp dword [esp + 0x40], ebx
je 0x402e97
cmp dword [esp + 0x5c], ebx
je 0x402e97
push 0x2a
call fcn.00404dbe
pop ecx
cmp dword [esp + 0x34], ebx
je 0x402ebe
mov eax, dword [esp + 0x28]
lea esi, [eax + 4]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x402ed5
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [esp + 0x20], ebx
je 0x402eec
push dword [esp + 0x20]
jmp 0x402ee6
push dword [esp + esi*4 + 0x7c]
dec esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x402ee1
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x402efd
call fcn.0040597e
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x402f0e
call fcn.0040597e
cmp esi, ebx
je 0x402f45
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x402f28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x402f37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.004090a1
pop ecx
lea esi, [esp + 0x34]
call fcn.00402876
push 4
push dword [esp + 0x1c]
call fcn.004039b7
pop ecx
pop ecx
cmp dword [esp + 0x30], ebx
je 0x402f6a
mov edi, dword [esp + 0x30]
call fcn.00401870
cmp dword [esp + 0x10], ebx
je 0x402f79
mov edi, dword [esp + 0x10]
call fcn.00401870
cmp dword [esp + 0x1c], ebx
je 0x402f93
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x40b440]
call fcn.00406274
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret