Function at 0x10009329
Capabilities:
Check os version
Encode data using xor
Get common file path

Disassembly:
push 0x230
push 0x100c17f0
call fcn.10075ce0
xor edi, edi
mov dword [ebp - 0x214], edi
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10009351
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x1000935e
add dword [ebp - 0x214], eax
jmp 0x10009364
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 0xb
jl 0x10009342
mov esi, 0x100a6ea4
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 0x15
jl 0x10009379
cmp dword [ebp - 0x214], 0xffff0001
jge 0x100093a0
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x100093bc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x22c], edi
cmp dword [ebp - 0x22c], 0xd
jge 0x100093fb
mov eax, dword [ebp - 0x22c]
and eax, reloc.WS2_32.dll_accept
jns 0x100093e0
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x100093ed
inc dword [ebp - 0x214]
jmp 0x100093f3
dec dword [ebp - 0x214]
inc dword [ebp - 0x22c]
jmp 0x100093c5
mov dword [ebp - 4], 0xfffffffe
call fcn.10009483
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 0x15
jl 0x10009409
cmp dword [ebp - 0x214], 0
jge 0x1000942d
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x10009449
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
and dword [ebp - 0x240], 0
cmp dword [ebp - 0x240], 0x1d
jge 0x100094ac
mov ecx, dword [ebp - 0x240]
and ecx, reloc.WS2_32.dll_accept
jns 0x10009472
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, eax
jne 0x1000949e
inc dword [ebp - 0x214]
jmp 0x100094a4
dec dword [ebp - 0x214]
inc dword [ebp - 0x240]
jmp 0x10009456
mov dword [ebp - 4], 0xfffffffe
call fcn.1000952c
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 5
jl 0x100094ba
cmp dword [ebp - 0x214], 0
jge 0x100094d5
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100094f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 2
and dword [ebp - 0x23c], 0
cmp dword [ebp - 0x23c], 6
jge 0x10009555
mov eax, dword [ebp - 0x23c]
and eax, reloc.WS2_32.dll_accept
jns 0x1000951a
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009547
inc dword [ebp - 0x214]
jmp 0x1000954d
dec dword [ebp - 0x214]
inc dword [ebp - 0x23c]
jmp 0x100094ff
mov dword [ebp - 4], 0xfffffffe
call fcn.10009582
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop edi
idiv edi
cmp edx, 1
je 0x1000959d
cmp edx, 4
je 0x1000959d
and dword [ebp - 0x214], ecx
jmp 0x100095a5
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 2
jl 0x10009563
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x100095bc
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x100095c9
add dword [ebp - 0x214], eax
jmp 0x100095cf
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 0xd
jl 0x100095ad
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], 3
and dword [ebp - 0x224], 0
cmp dword [ebp - 0x224], 6
jge 0x10009621
mov eax, dword [ebp - 0x224]
and eax, reloc.WS2_32.dll_accept
jns 0x10009606
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009613
inc dword [ebp - 0x214]
jmp 0x10009619
dec dword [ebp - 0x214]
inc dword [ebp - 0x224]
jmp 0x100095eb
mov dword [ebp - 4], 0xfffffffe
call fcn.10009668
mov dword [ebp - 4], 4
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 2
jge 0x10009691
mov eax, dword [ebp - 0x234]
and eax, reloc.WS2_32.dll_accept
jns 0x10009656
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009683
inc dword [ebp - 0x214]
jmp 0x10009689
dec dword [ebp - 0x214]
inc dword [ebp - 0x234]
jmp 0x1000963b
mov dword [ebp - 4], 0xfffffffe
call fcn.100096f8
xor ebx, ebx
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 5
jl 0x100096a1
cmp dword [ebp - 0x214], ebx
jge 0x100096bb
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100096d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop edi
idiv edi
cmp edx, 1
je 0x10009713
cmp edx, 4
je 0x10009713
and dword [ebp - 0x214], ecx
jmp 0x10009719
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x100096d9
push 0xfa
lea eax, [ebp - 0x210]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call edi
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x10009735
cmp dword [ebp - 0x214], ebx
jge 0x10009758
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x10009774
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009776
cmp dword [ebp - 0x214], ebx
jge 0x10009790
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100097ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x100097bd
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x100097ca
add dword [ebp - 0x214], eax
jmp 0x100097d0
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 7
jl 0x100097ae
push esi
push esi
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
call ebx
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
push esi
push esi
call ebx
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x1000980c
cmp edx, 4
je 0x1000980c
and dword [ebp - 0x214], ecx
jmp 0x10009812
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 8
jl 0x100097f2
push 0xfa
lea eax, [ebp - 0x210]
push eax
call edi
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x10009828
mov ebx, 0xffff0001
mov eax, dword [ebp - 0x214]
cmp eax, ebx
jge 0x1000984c
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009862
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 7
jl 0x10009864
cmp dword [ebp - 0x214], ebx
jge 0x10009887
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x100098a3
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x214], eax
jge 0x100098b6
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x100098cc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x100098ce
cmp dword [ebp - 0x214], 0
jge 0x100098f2
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x1000990e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009910
cmp dword [ebp - 0x214], 0
jge 0x10009934
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x10009950
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10009961
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x1000996e
add dword [ebp - 0x214], eax
jmp 0x10009974
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009952
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x214], ecx
cmp ecx, ebx
jge 0x1000999b
imul ecx, ecx, 0xfffffffb
mov dword [ebp - 0x214], ecx
mov eax, ecx
cdq
push 7
pop ebx
idiv ebx
test edx, edx
je 0x100099b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
mov dword [ebp - 0x214], ecx
xor eax, eax
xor ecx, eax
mov dword [ebp - 0x214], ecx
inc eax
cmp eax, 2
jl 0x100099b7
test ecx, ecx
jns 0x100099d1
neg ecx
mov dword [ebp - 0x214], ecx
mov eax, ecx
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100099e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009a05
cmp edx, 4
je 0x10009a05
and dword [ebp - 0x214], ecx
jmp 0x10009a0d
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x100099eb
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009a2f
cmp edx, 4
je 0x10009a2f
and dword [ebp - 0x214], ecx
jmp 0x10009a35
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x10009a15
push 0xfa
lea eax, [ebp - 0x210]
push eax
call edi
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x10009a4b
cmp dword [ebp - 0x214], 0
jge 0x10009a66
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x10009a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009a9e
cmp edx, 4
je 0x10009a9e
and dword [ebp - 0x214], ecx
jmp 0x10009aa4
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 2
jl 0x10009a84
push 0xfa
lea eax, [ebp - 0x210]
push eax
call edi
mov dword [ebp - 4], 5
and dword [ebp - 0x218], 0
cmp dword [ebp - 0x218], 0
jge 0x10009afc
mov eax, dword [ebp - 0x218]
and eax, reloc.WS2_32.dll_accept
jns 0x10009ae1
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009aee
inc dword [ebp - 0x214]
jmp 0x10009af4
dec dword [ebp - 0x214]
inc dword [ebp - 0x218]
jmp 0x10009ac6
mov dword [ebp - 4], 0xfffffffe
call fcn.10009b87
xor ebx, ebx
cmp dword [ebp - 0x214], ebx
jge 0x10009b18
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x10009b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], 6
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x21c], ebx
jge 0x10009bb0
mov eax, dword [ebp - 0x21c]
and eax, reloc.WS2_32.dll_accept
jns 0x10009b6f
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009ba2
inc dword [ebp - 0x214]
jmp 0x10009ba8
dec dword [ebp - 0x214]
inc dword [ebp - 0x21c]
jmp 0x10009b55
mov dword [ebp - 4], 0xfffffffe
call fcn.10009be3
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009bfe
cmp edx, 4
je 0x10009bfe
and dword [ebp - 0x214], ecx
jmp 0x10009c06
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10009bbe
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10009c1d
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10009c2a
add dword [ebp - 0x214], eax
jmp 0x10009c30
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x10009c0e
push esi
push esi
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
call ebx
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10009c51
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10009c5e
add dword [ebp - 0x214], eax
jmp 0x10009c64
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009c42
push esi
push esi
call ebx
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x10009c70
mov ebx, 0xffff0001
cmp dword [ebp - 0x214], ebx
jge 0x10009c98
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009cb4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
cmp eax, ebx
jge 0x10009ccd
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009ce3
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009cff
cmp edx, 4
je 0x10009cff
and dword [ebp - 0x214], ecx
jmp 0x10009d05
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10009ce5
mov ebx, 0xfa
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10009d2b
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10009d38
add dword [ebp - 0x214], eax
jmp 0x10009d3e
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x10009d1c
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10009d72
cmp edx, 4
je 0x10009d72
and dword [ebp - 0x214], ecx
jmp 0x10009d78
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10009d58
push 0xfa
lea eax, [ebp - 0x210]
push eax
call edi
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009d8e
cmp dword [ebp - 0x214], 0
jge 0x10009db2
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x10009dce
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 7
and dword [ebp - 0x220], 0
cmp dword [ebp - 0x220], 1
jge 0x10009e12
mov eax, dword [ebp - 0x220]
and eax, reloc.WS2_32.dll_accept
jns 0x10009df7
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009e04
inc dword [ebp - 0x214]
jmp 0x10009e0a
dec dword [ebp - 0x214]
inc dword [ebp - 0x220]
jmp 0x10009ddc
mov dword [ebp - 4], 0xfffffffe
call fcn.10009f9d
xor eax, eax
and ecx, eax
mov dword [ebp - 0x214], ecx
inc eax
cmp eax, 4
jl 0x10009e20
test ecx, ecx
jns 0x10009e3b
imul ecx, ecx, 0xfffffffb
mov dword [ebp - 0x214], ecx
mov eax, ecx
cdq
push 0xd
pop ebx
idiv ebx
test edx, edx
jne 0x10009e55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x214], ecx
cmp ecx, 0xffff0001
jge 0x10009e6c
imul ecx, ecx, 0xfffffffb
mov dword [ebp - 0x214], ecx
mov eax, ecx
cdq
push 7
pop ebx
idiv ebx
test edx, edx
je 0x10009e86
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x214], ecx
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009e96
mov esi, 0xffff0001
cmp dword [ebp - 0x214], esi
jge 0x10009ebe
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009eda
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x10009edc
cmp dword [ebp - 0x214], esi
jge 0x10009eff
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009f1b
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x10009f1d
cmp dword [ebp - 0x214], esi
jge 0x10009f40
mov eax, dword [ebp - 0x214]
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x10009f5c
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 8
and dword [ebp - 0x228], 0
cmp dword [ebp - 0x228], 2
jge 0x10009fc9
mov eax, dword [ebp - 0x228]
and eax, reloc.WS2_32.dll_accept
jns 0x10009f85
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10009fbb
inc dword [ebp - 0x214]
jmp 0x10009fc1
dec dword [ebp - 0x214]
inc dword [ebp - 0x228]
jmp 0x10009f6a
mov dword [ebp - 4], 0xfffffffe
mov ebx, 0xfa
call fcn.1000a04a
and dword [ebp - 0x214], 0
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
test eax, eax
jns 0x1000a003
neg eax
mov dword [ebp - 0x214], eax
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x1000a019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop esi
idiv esi
cmp edx, 1
je 0x1000a065
cmp edx, 4
je 0x1000a065
and dword [ebp - 0x214], ecx
jmp 0x1000a06d
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 2
jl 0x1000a025
xor esi, esi
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
xor eax, eax
sub esi, eax
mov dword [ebp - 0x214], esi
inc eax
cmp eax, 3
jl 0x1000a087
cmp esi, 0xffff0001
jge 0x1000a0a6
imul esi, esi, 0xfffffffb
mov dword [ebp - 0x214], esi
mov eax, esi
cdq
push 7
pop ecx
idiv ecx
test edx, edx
je 0x1000a0be
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
and dword [ebp - 0x214], 0
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x1000a0c7
cmp dword [ebp - 0x214], 0
jge 0x1000a0e2
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x1000a0fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 9
and dword [ebp - 0x230], 0
cmp dword [ebp - 0x230], 3
jge 0x1000a142
mov eax, dword [ebp - 0x230]
and eax, reloc.WS2_32.dll_accept
jns 0x1000a127
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x1000a134
inc dword [ebp - 0x214]
jmp 0x1000a13a
dec dword [ebp - 0x214]
inc dword [ebp - 0x230]
jmp 0x1000a10c
mov dword [ebp - 4], 0xfffffffe
call fcn.1000a251
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x1000a150
cmp dword [ebp - 0x214], 0
jge 0x1000a16b
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x1000a187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor esi, esi
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
mov dword [ebp - 0x214], esi
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x1000a1b1
cmp dword [ebp - 0x214], esi
jge 0x1000a1cb
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x1000a1e7