Function at 0x1009780
Capabilities:
Check for software breakpoints
Check for time delay via gettickcount
Check mutex on windows
Encode data using xor
Parse url
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1021a2b
mov eax, dword fs:[0]
push eax
mov eax, 0x1578
call fcn.010204c0
mov eax, dword [0x102806c]
xor eax, esp
mov dword [esp + 0x1570], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102806c]
xor eax, esp
push eax
lea eax, [esp + 0x158c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x159c]
xor esi, esi
mov ebx, edx
push 0x3c
lea edx, [esp + 0x4c]
push esi
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], esi
call fcn.01016120
lea eax, [esp + 0x90]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 8]
add esp, 0xc
cmp eax, esi
lea ecx, [esp + 0x1184]
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x5c], 0x100
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0x400
je 0x100a51b
jmp 0x1009834
mov ebx, dword [esp + 0x30]
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009840
lea ecx, [esp + 0x48]
push ecx
push 0
sub eax, esi
push eax
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x100a51b
lea eax, [esp + 0x1184]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009870
sub eax, edx
jne 0x1009897
push 0x10251f0
lea edx, [esp + 0x1188]
push 0x400
push edx
call fcn.01011b01
add esp, 0xc
cmp byte [edi + 0x10], 0
je 0x10098b3
mov eax, dword [edi + 0xc]
movzx edx, word [eax + 4]
mov ecx, dword [eax]
mov esi, dword [ebx + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
jmp 0x10098de
mov ax, word [esp + 0x60]
test ax, ax
movzx ecx, ax
mov dword [esp + 0x40], ecx
jne 0x10098cc
mov dword [esp + 0x40], 0x50
lea edx, [esp + 0x84]
mov dword [esp + 0x38], edx
lea esi, [esp + 0x1184]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, 0x1000
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
call fcn.01011158
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1594], 0
movzx eax, word [ebx + 4]
movzx eax, ax
mov ecx, dword [eax*4 + 0x102a220]
push esi
push ecx
push str._s__s_HTTP_1.0_r_n
lea edx, [esp + 0x190]
call fcn.0100fc40
lea eax, [esp + 0x190]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1009947
mov ebx, dword [esp + 0x1c]
push 0xffffffffffffffff
sub eax, ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, 0x1000
jbe 0x1009998
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x10099a2
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
jmp 0x10099b8
test ebp, ebp
jne 0x10099a2
mov dword [esp + 0x18], ebp
jmp 0x10099b8
push esi
lea edx, [esp + 0x188]
push edx
push ebp
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.Accept:___r_n
lea edx, [esp + 0x188]
call fcn.0100fc40
lea eax, [esp + 0x188]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10099e0
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebx]
cmp esi, edi
jbe 0x1009a34
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1009a3e
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
jmp 0x1009a5b
test ebp, ebp
jne 0x1009a3e
mov dword [esp + 0x18], ebp
jmp 0x1009a5b
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x188]
push edx
lea ecx, [eax + ebp]
push ecx
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.Accept_encoding:_identity_r_n
lea edx, [esp + 0x188]
call fcn.0100fc40
lea eax, [esp + 0x188]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009a84
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebx]
cmp esi, edi
jbe 0x1009ad8
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1009ae2
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
jmp 0x1009aff
test ebp, ebp
jne 0x1009ae2
mov dword [esp + 0x18], ebp
jmp 0x1009aff
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x188]
push edx
lea ecx, [eax + ebp]
push ecx
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
push ecx
push str.User_Agent:__s_r_n
lea edx, [esp + 0x18c]
call fcn.0100fc40
lea eax, [esp + 0x18c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009b30
sub eax, edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea esi, [eax + ebx]
cmp esi, edi
jbe 0x1009b84
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1009b8e
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
jmp 0x1009bab
test ebp, ebp
jne 0x1009b8e
mov dword [esp + 0x18], ebp
jmp 0x1009bab
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x188]
push ecx
lea eax, [edx + ebp]
push eax
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.Connection:_Close_r_n
lea edx, [esp + 0x188]
call fcn.0100fc40
lea eax, [esp + 0x188]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009bd4
sub eax, edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea esi, [eax + ebx]
cmp esi, edi
jbe 0x1009c28
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1009c32
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
jmp 0x1009c4f
test ebp, ebp
jne 0x1009c32
mov dword [esp + 0x18], ebp
jmp 0x1009c4f
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x188]
push ecx
lea eax, [edx + ebp]
push eax
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea edx, [esp + 0x84]
push edx
push str.Host:__s_r_n
lea edx, [esp + 0x18c]
call fcn.0100fc40
lea eax, [esp + 0x18c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009c80
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
lea ebx, [ecx + esi]
cmp ebx, edi
jbe 0x1009cce
mov edi, ebx
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.01011c97
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1009cce
xor edi, edi
mov dword [esp + 0x24], edi
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x1009cf4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push esi
lea edx, [esp + 0x188]
push edx
add eax, ecx
push eax
call fcn.01019d30
add esp, 0xc
mov ebp, ebx
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x38], 0
je 0x1009e66
lea ecx, [esp + 0x1184]
push ecx
lea edx, [esp + 0x88]
push edx
lea ecx, [eax + 0x18]
call fcn.01007ba0
mov esi, eax
test esi, esi
je 0x1009e66
call fcn.01004520
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push str.Cookie:__s_s
lea edx, [esp + 0x190]
call fcn.0100fc40
add esp, 0xc
call fcn.01004520
test eax, eax
je 0x1009d87
lea esp, [esp]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18c]
push eax
push str._s___s_s
mov edx, eax
call fcn.0100fc40
add esp, 0x10
call fcn.01004520
test eax, eax
jne 0x1009d60
push 0x1024c80
lea ecx, [esp + 0x188]
push 0x1000
push ecx
call fcn.01011ef9
lea eax, [esp + 0x190]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x1009db0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009db0
sub eax, edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea ebx, [eax + ebp]
cmp ebx, edi
jbe 0x1009e00
mov ecx, dword [esp + 0x20]
mov edi, ebx
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ecx
mov dword [esp + 0x2c], edi
call fcn.01011c97
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1009e00
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1009e12
mov dword [esp + 0x18], eax
jmp 0x1009e32
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x188]
push edx
add eax, ecx
push eax
call fcn.01019d30
add esp, 0xc
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, esi
call fcn.010045a0
mov eax, dword [esi]
push eax
call fcn.01011b90
add esp, 4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.01011b90
mov ebp, dword [esp + 0x1c]
add esp, 4
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
mov word [eax + 0x24], 0xffff
mov dword [eax + 0x28], 0
mov esi, dword [ebx + 0xc]
call fcn.01004520
test eax, eax
je 0x1009f55
lea ebx, [ebx]
cmp byte [eax + 0x10], 4
jne 0x1009f3d
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push str._s:__s_r_n
lea edx, [esp + 0x190]
call fcn.0100fc40
lea eax, [esp + 0x190]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009ec0
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebx + ebp]
cmp esi, edi
jbe 0x1009f04
mov ecx, dword [esp + 0x20]
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ecx
call fcn.01011c97
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1009f04
xor edi, edi
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1009f14
xor ebp, ebp
jmp 0x1009f2e
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x188]
push edx
add eax, ebp
push eax
call fcn.01019d30
add esp, 0xc
mov ebp, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0xc]
call fcn.01004520
test eax, eax
jne 0x1009e90
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edi
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test eax, eax
je 0x100a0d0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
test eax, eax
je 0x100a0d0
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0xc]
lea ebx, [esi + 0xc]
push ebx
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, 0x55
mov ecx, str.Content_Type
mov al, 0x43
add ecx, 1
xor dl, al
mov al, byte [ecx]
test al, al
jne 0x1009f98
movsx ecx, word [esi + 4]
movzx eax, dl
cdq
idiv ecx
mov eax, dword [esi]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x1009fd1
mov ecx, dword [esi]
push str.Content_Type
push ecx
call fcn.0100fea0
add esp, 8
test eax, eax
je 0x1009fd1
mov esi, dword [esi + 0x11]
test esi, esi
jne 0x1009fb6
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x100a026
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edx, [esp + 0x188]
call fcn.0100fc40
lea eax, [esp + 0x188]
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a000
sub eax, edx
lea edx, [esp + 0x184]
push edx
mov edi, eax
lea esi, [esp + 0x18]
call fcn.01001ea0
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
push str.Content_Length:__d_r_n
lea edx, [esp + 0x18c]
call fcn.0100fc40
lea eax, [esp + 0x18c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a050
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebx + ebp]
cmp esi, edi
jbe 0x100a0a0
mov ecx, dword [esp + 0x20]
mov edi, esi
shr edi, 0xc
add edi, 1
shl edi, 0xc
push edi
push ecx
mov dword [esp + 0x2c], edi
call fcn.01011c97
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
jne 0x100a0ab
xor edi, edi
mov dword [esp + 0x24], edi
xor ebp, ebp
jmp 0x100a0c5
cmp dword [esp + 0x20], 0
jne 0x100a0ab
xor ebp, ebp
jmp 0x100a0c5
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x188]
push edx
add eax, ebp
push eax
call fcn.01019d30
add esp, 0xc
mov ebp, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1024c80
lea edx, [esp + 0x188]
call fcn.0100fc40
lea eax, [esp + 0x188]
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a0f0
sub eax, edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebx + ebp]
cmp esi, edi
jbe 0x100a13e
mov eax, esi
shr eax, 0xc
add eax, 1
shl eax, 0xc
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.01011c97
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x20], edi
jne 0x100a142
mov dword [esp + 0x24], eax
jmp 0x100a142
mov edi, dword [esp + 0x20]
test edi, edi
mov dword [esp + 0x14], edi
jne 0x100a14e
xor esi, esi
jmp 0x100a163
push ebx
lea ecx, [esp + 0x188]
push ecx
lea edx, [edi + ebp]
push edx
call fcn.01019d30
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x100a522
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
test eax, eax
je 0x100a522
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x3c]
push eax
call edx
test eax, eax
je 0x100a532
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push esi
push edi
call edx
test eax, eax
je 0x100a542
cmp dword [esp + 0x44], 0
je 0x100a1fb
mov eax, dword [ebx]
mov edi, dword [esp + 0x30]
mov esi, dword [eax]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
add esi, 0x34
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx]
mov ecx, edi
call eax
mov ecx, dword [ebx]
mov edx, dword [esi]
push eax
call edx
test eax, eax
je 0x100a542
cmp dword [esp + 0x34], 0
je 0x100a215
mov eax, dword [esp + 0x34]
cmp word [eax + 0xc], 0xcc
je 0x100a215
mov edi, eax
call fcn.01009080
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
mov esi, eax
push 0x1000
lea eax, [esp + 0x188]
push eax
call edx
mov ebp, dword [esp + 0x34]
mov edi, eax
cmp edi, 0xffffffff
je 0x100a2f0
test edi, edi
jbe 0x100a2c2
test ebp, ebp
je 0x100a2ba
mov esi, dword [ebp + 0x24]
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
add eax, edi
cmp eax, dword [esi + 0x10]
jbe 0x100a288
mov ecx, dword [esi + 0xc]
shr eax, 0xc
add eax, 1
shl eax, 0xc
push eax
push ecx
mov dword [esi + 0x10], eax
call fcn.01011c97
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
jne 0x100a28b
mov dword [esi + 0x10], eax
jmp 0x100a28b
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esi], eax
jne 0x100a296
mov dword [esi + 4], eax
jmp 0x100a2b0
mov ecx, dword [esi + 4]
push edi
lea edx, [esp + 0x188]
push edx
add ecx, eax
push ecx
call fcn.01019d30
add esp, 0xc
add dword [esi + 4], edi
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [ebx + 0x40]
ja 0x100a2f0
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
push 0x1000
lea edx, [esp + 0x188]
push edx
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x100a242
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test ebp, ebp
je 0x100a562
mov ecx, dword [ebp + 0x24]
cmp dword [ecx + 4], 0
je 0x100a552
push ebp
call fcn.010091c0
cmp dword [ebx + 0x38], 1
jne 0x100a405
mov esi, dword [ebp + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xc]
push edi
call ebx
mov dl, 0x55
mov ecx, str.Set_Cookie
mov al, 0x53
add ecx, 1
xor dl, al
mov al, byte [ecx]
test al, al
jne 0x100a336
movsx ecx, word [esi + 4]
movzx eax, dl
cdq
idiv ecx
mov eax, dword [esi]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x100a36f
mov ecx, dword [esi]
push str.Set_Cookie
push ecx
call fcn.0100fea0
add esp, 8
test eax, eax
je 0x100a36f
mov esi, dword [esi + 0x11]
test esi, esi
jne 0x100a354
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebp
test esi, esi
je 0x100a401
mov edx, dword [esp + 0x34]
mov esi, dword [edx + 4]
lea edi, [esi + 0xc]
push edi
call ebx
mov dl, 0x55
mov ecx, str.Set_Cookie
mov al, 0x53
add ecx, 1
xor dl, al
mov al, byte [ecx]
test al, al
jne 0x100a396
movsx ecx, word [esi + 4]
movzx eax, dl
cdq
idiv ecx
mov eax, dword [esi]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x100a3cf
mov ecx, dword [esi]
push str.Set_Cookie
push ecx
call fcn.0100fea0
add esp, 8
test eax, eax
je 0x100a3cf
mov esi, dword [esi + 0x11]
test esi, esi
jne 0x100a3b4
push edi
call ebp
test esi, esi
je 0x100a3e1
cmp byte [esi + 0x10], 4
jne 0x100a3e1
mov esi, dword [esi + 4]
jmp 0x100a3e3
xor esi, esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x84]
push edx
add eax, 0x18
push eax
lea edi, [esp + 0x118c]
mov edx, esi
call fcn.01007d60
mov ebp, dword [esp + 0x34]
movzx eax, word [ebp + 0xc]
xor bl, bl
cmp ax, 0x12e
je 0x100a417
cmp ax, 0x12d
jne 0x100a48f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x100a48f
cmp dword [esp + 0x3c], eax
jae 0x100a48f
mov eax, dword [ebp + 4]
mov edi, str.Location
call fcn.010041e0
test eax, eax
je 0x100a48f
mov eax, dword [ebp + 4]
call fcn.010041e0
test eax, eax
je 0x100a450
cmp byte [eax + 0x10], 4
jne 0x100a450
mov esi, dword [eax + 4]
jmp 0x100a452
xor esi, esi
cmp byte [esi], 0x20
jne 0x100a45f
add esi, 1
cmp byte [esi], 0x20
je 0x100a457
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 8]
test eax, eax
je 0x100a47a
push eax
call fcn.01010bef
add esp, 4
mov dword [edi + 8], 0
push esi
call fcn.01011b95
add esp, 4
add dword [esp + 0x3c], 1
mov dword [edi + 8], eax
mov bl, 1
jmp 0x100a493
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1594], 0xffffffff
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100a4bc
push eax
call fcn.01010bef
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x100a56b
push 0x3c
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.01016120
add esp, 0xc
cmp dword [edi + 8], 0
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1184]
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x100
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0x400
jne 0x1009830
mov eax, 1
jmp 0x100a56d
lea esi, [esp + 0x14]
call fcn.01001d20
mov eax, 2
jmp 0x100a56d
lea esi, [esp + 0x14]
call fcn.01001d20
mov eax, 3
jmp 0x100a56d
lea esi, [esp + 0x14]
call fcn.01001d20
mov eax, 4
jmp 0x100a56d
lea esi, [esp + 0x14]
call fcn.01001d20
mov eax, 5
jmp 0x100a56d
lea esi, [esp + 0x14]
call fcn.01001d20
xor eax, eax
mov ecx, dword [esp + 0x158c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1570]
xor ecx, esp
call fcn.0100fd07
add esp, 0x1584
ret 4