Function at 0x4028ec
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 + 0x20], ebx
lea edi, [esp + 0x24]
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 0x402e8b
push dword [0x40b40c]
mov ecx, esi
xor eax, eax
call fcn.004084ad
pop ecx
cmp eax, dword [0x40b430]
jne 0x402e8b
push 0x40b410
mov eax, esi
call fcn.0040617a
pop ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x40b440], eax
cmp ecx, ebx
je 0x402e8b
push ebx
push 0x31
call fcn.0040621b
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004093d2
test byte [esi], 1
pop ecx
je 0x4029cb
push 0x20
lea eax, [esp + 0x64]
push eax
push 0x58
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4029c1
mov eax, dword [esp + 0x60]
shr eax, 9
and eax, 1
jmp 0x4029c3
xor eax, eax
cmp eax, ebx
jne 0x402ddd
lea esi, [esp + 0x34]
call fcn.0040276d
push ebx
push 0x43
call fcn.0040621b
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4029f8
mov eax, esi
push eax
push edi
call fcn.00402612
pop ecx
pop ecx
test eax, eax
jne 0x4029f8
call fcn.0040276d
push edi
call fcn.004038c7
pop ecx
call fcn.00403d26
mov dword [esp + 0x5c], eax
cmp eax, ebx
mov eax, dword [esp + 0x4c]
jne 0x402a14
mov eax, dword [esp + 0x48]
push dword [esp + 0x38]
push eax
call fcn.0040365f
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0xc], esi
cmp esi, ebx
je 0x402ddd
push esi
call fcn.004027c1
pop ecx
call fcn.00405804
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x402dee
call fcn.00405804
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x402ddd
mov dword [esp + 0x20], esi
lea esi, [esp + 0x1c]
cmp dword [esp + 0x5c], ebx
je 0x402add
push 1
call fcn.00404d92
pop ecx
test eax, eax
je 0x402ddd
push ebx
call fcn.00404e67
pop ecx
test eax, eax
je 0x402a9a
cmp dword [esp + 0x34], ebx
jne 0x402a9a
call fcn.004048c0
test eax, eax
je 0x402a9a
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x18]
test byte [esi], 8
je 0x402ab7
cmp dword [esp + 0x34], ebx
je 0x402aaf
cmp dword [esp + 0x40], ebx
je 0x402ab7
push 0x2a
call fcn.00404cab
pop ecx
test byte [esi], 0x10
je 0x402b7f
cmp dword [esp + 0x34], ebx
je 0x402ad0
cmp dword [esp + 0x44], ebx
je 0x402b7f
push 0x2b
call fcn.00404cab
pop ecx
jmp 0x402b7f
push ebx
call fcn.00404d92
pop ecx
test eax, eax
jne 0x402b59
push 1
call fcn.00404e67
pop ecx
test eax, eax
je 0x402ddd
mov esi, dword [esp + 0x18]
test byte [esi], 4
je 0x402b14
cmp dword [esp + 0x34], ebx
jne 0x402b14
call fcn.00402326
test eax, eax
jne 0x402ddd
test byte [esi], 2
je 0x402ddd
cmp dword [esp + 0x34], ebx
jne 0x402ddd
push 0x32
pop esi
call fcn.00404831
test eax, eax
je 0x402ddd
push 1
dec esi
call fcn.00404e67
pop ecx
test eax, eax
je 0x402ddd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jne 0x402b37
jmp 0x402ddd
cmp dword [esp + 0x34], ebx
jne 0x402b8f
push 1
call fcn.00404e67
pop ecx
test eax, eax
je 0x402b7f
call fcn.0040478b
test eax, eax
je 0x402b7f
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x34], ebx
jne 0x402b8f
call fcn.0040283d
call fcn.00401236
push 0x2c
call fcn.00404cab
pop ecx
cmp dword [esp + 0x34], ebx
je 0x402bc3
cmp dword [esp + 0x58], ebx
je 0x402bc3
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.00403b67
push eax
push 1
call fcn.0040178b
mov edi, eax
mov dword [esp + 0x40], edi
jmp 0x402bfb
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push dword [esi]
call fcn.00403b67
push eax
push ebx
call fcn.0040178b
mov edi, eax
add esp, 0x10
lea eax, [esp + 0x34]
push eax
push dword [esi]
mov dword [esp + 0x38], edi
call fcn.00403b67
push eax
push 1
call fcn.0040178b
mov dword [esp + 0x20], eax
add esp, 0x10
cmp edi, ebx
je 0x402ddd
push dword [esp + 0x24]
push dword [esp + 0x10]
push ebx
push ebx
push ebx
push 0x4021e5
call fcn.004023b9
add esp, 0x18
mov dword [esp + 0x80], eax
cmp eax, ebx
je 0x402c32
xor esi, esi
inc esi
mov dword [esp + 0x14], esi
jmp 0x402c34
mov esi, ebx
cmp dword [esp + 0x34], ebx
jne 0x402d0e
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 0x402291
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402dd9
inc esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0x50], ebx
je 0x402c9a
push dword [esp + 0x24]
push dword [esp + 0x10]
push dword [esp + 0x58]
push dword [esp + 0x1c]
push edi
push 0x401ab6
call fcn.004023b9
add esp, 0x18
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402c9a
inc esi
mov dword [esp + 0x14], esi
push dword [esp + 0x28]
push dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edi
push 0x402058
call fcn.004023b9
add esp, 0x18
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402cc5
inc esi
mov dword [esp + 0x14], esi
push dword [esp + 0x24]
push dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edi
push 0x40196d
call fcn.004023b9
push dword [esp + 0x3c]
mov dword [esp + 0x48], eax
push dword [esp + 0x28]
push ebx
push dword [esp + 0x34]
push edi
push 0x401bbc
call fcn.004023b9
add esp, 0x30
mov dword [esp + esi*4 + 0x80], eax
cmp eax, ebx
je 0x402d30
inc esi
mov dword [esp + 0x14], esi
jmp 0x402d30
push dword [esp + 0x24]
push dword [esp + 0x10]
push dword [esp + 0x58]
push dword [esp + 0x1c]
push edi
push 0x401ab6
call fcn.004023b9
add esp, 0x18
mov dword [esp + 0x2c], eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x24]
call fcn.00405836
test eax, eax
jne 0x402d88
cmp dword [esp + 0x34], ebx
je 0x402d55
cmp dword [esp + 0x3c], ebx
je 0x402d5a
call section..text
cmp dword [esp + 0x34], ebx
jne 0x402d65
call fcn.0040283d
mov eax, dword [esp + 0x18]
test byte [eax], 8
je 0x402d88
cmp dword [esp + 0x34], ebx
je 0x402d7a
cmp dword [esp + 0x40], ebx
je 0x402d88
cmp dword [esp + 0x5c], ebx
je 0x402d88
push 0x2a
call fcn.00404cab
pop ecx
cmp dword [esp + 0x34], ebx
je 0x402daf
mov eax, dword [esp + 0x24]
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]
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [esp + 0x2c], ebx
je 0x402dd9
push dword [esp + 0x2c]
jmp 0x402dd3
push dword [esp + esi*4 + 0x7c]
dec esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x402dce
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x402dea
call fcn.00405852
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x402dfb
call fcn.00405852
cmp esi, ebx
je 0x402e32
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x402e15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x402e24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.00408f75
pop ecx
lea esi, [esp + 0x34]
call fcn.0040276d
push 4
push dword [esp + 0x1c]
call fcn.004038a4
pop ecx
pop ecx
cmp dword [esp + 0x30], ebx
je 0x402e57
mov edi, dword [esp + 0x30]
call fcn.00401767
cmp dword [esp + 0x10], ebx
je 0x402e66
mov edi, dword [esp + 0x10]
call fcn.00401767
cmp dword [esp + 0x1c], ebx
je 0x402e80
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.00406148
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret