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

Disassembly:
push 0x220
push 0x100c1af0
call fcn.10075ce0
xor esi, esi
mov dword [ebp - 0x214], esi
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 0x10004e1c
cmp edx, 4
je 0x10004e1c
and dword [ebp - 0x214], ecx
jmp 0x10004e24
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 7
jl 0x10004e02
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], esi
cmp dword [ebp - 0x224], 0xd
jge 0x10004e69
mov eax, dword [ebp - 0x224]
and eax, reloc.WS2_32.dll_accept
jns 0x10004e4e
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10004e5b
inc dword [ebp - 0x214]
jmp 0x10004e61
dec dword [ebp - 0x214]
inc dword [ebp - 0x224]
jmp 0x10004e33
mov dword [ebp - 4], 0xfffffffe
call fcn.10004e91
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop esi
idiv esi
cmp edx, 1
je 0x10004eac
cmp edx, 4
je 0x10004eac
and dword [ebp - 0x214], ecx
jmp 0x10004eb4
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 0x1b
jl 0x10004e77
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10004ecb
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10004ed8
add dword [ebp - 0x214], eax
jmp 0x10004ede
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 0xd
jl 0x10004ebc
mov esi, 0x100a6ea4
push esi
push esi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
call edi
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10004f0f
cmp edx, 4
je 0x10004f0f
and dword [ebp - 0x214], ecx
jmp 0x10004f17
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 0x20
jl 0x10004ef5
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10004f2e
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10004f3b
add dword [ebp - 0x214], eax
jmp 0x10004f41
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 0x1f
jl 0x10004f1f
push esi
push esi
call edi
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10004f5c
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10004f69
add dword [ebp - 0x214], eax
jmp 0x10004f6f
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 2
jl 0x10004f4d
push esi
push esi
call edi
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10004f95
cmp edx, 4
je 0x10004f95
and dword [ebp - 0x214], ecx
jmp 0x10004f9b
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x10004f7b
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
xor ebx, ebx
inc ebx
cmp edx, ebx
je 0x10004fd1
cmp edx, 4
je 0x10004fd1
and dword [ebp - 0x214], ecx
jmp 0x10004fd7
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 0xd
jl 0x10004fb5
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], ebx
and dword [ebp - 0x230], 0
cmp dword [ebp - 0x230], 0x10
jge 0x1000502e
mov eax, dword [ebp - 0x230]
and eax, reloc.WS2_32.dll_accept
jns 0x10005014
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, ebx
jne 0x10005020
inc dword [ebp - 0x214]
jmp 0x10005026
dec dword [ebp - 0x214]
inc dword [ebp - 0x230]
jmp 0x10004ff9
mov dword [ebp - 4], 0xfffffffe
call fcn.1000509a
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 0xf
jl 0x1000503c
cmp dword [ebp - 0x214], 0
jge 0x10005057
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x10005073
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 0x100050b5
cmp edx, 4
je 0x100050b5
and dword [ebp - 0x214], ecx
jmp 0x100050bb
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 0x10
jl 0x10005075
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x100050ef
cmp edx, 4
je 0x100050ef
and dword [ebp - 0x214], ecx
jmp 0x100050f7
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x100050d5
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10005119
cmp edx, 4
je 0x10005119
and dword [ebp - 0x214], ecx
jmp 0x10005121
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 5
jl 0x100050ff
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 0xc
jl 0x10005129
cmp dword [ebp - 0x214], 0
jge 0x1000514d
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 0x10005169
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10005185
cmp edx, 4
je 0x10005185
and dword [ebp - 0x214], ecx
jmp 0x1000518d
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x1000516b
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
xor ebx, ebx
inc ebx
cmp edx, ebx
je 0x100051b1
cmp edx, 4
je 0x100051b1
and dword [ebp - 0x214], ecx
jmp 0x100051b9
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 0x10
jl 0x10005195
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x100051d0
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x100051dc
add dword [ebp - 0x214], eax
jmp 0x100051e2
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x100051c1
push esi
push esi
call edi
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x100051ee
cmp dword [ebp - 0x214], 0xffff0001
jge 0x10005215
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 0x10005231
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 6
jl 0x10005233
cmp dword [ebp - 0x214], 0
jge 0x10005257
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 0x10005273
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 0x10005284
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x10005290
add dword [ebp - 0x214], eax
jmp 0x10005296
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 8
jl 0x10005275
push esi
push esi
call edi
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
test eax, eax
jns 0x100052b6
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100052d2
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 0x100052e3
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x100052ef
add dword [ebp - 0x214], eax
jmp 0x100052f5
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 5
jl 0x100052d4
push esi
push esi
call edi
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10005310
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x1000531c
add dword [ebp - 0x214], eax
jmp 0x10005322
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x10005301
push esi
push esi
call edi
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 5
jl 0x1000532e
cmp dword [ebp - 0x214], 0
jge 0x10005349
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x10005365
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor eax, eax
and dword [ebp - 0x214], eax
inc eax
cmp eax, 6
jl 0x10005367
cmp dword [ebp - 0x214], 0
jge 0x1000538b
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 0x100053a7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x100053c3
cmp edx, 4
je 0x100053c3
and dword [ebp - 0x214], ecx
jmp 0x100053c9
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 6
jl 0x100053a9
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x100053e3
cmp dword [ebp - 0x214], 0xffff0001
jge 0x1000540a
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 0x10005426
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 0x10005442
cmp edx, 4
je 0x10005442
and dword [ebp - 0x214], ecx
jmp 0x1000544a
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 2
jl 0x10005428
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x10005461
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x1000546e
add dword [ebp - 0x214], eax
jmp 0x10005474
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 7
jl 0x10005452
push esi
push esi
call edi
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x1000549a
cmp edx, 4
je 0x1000549a
and dword [ebp - 0x214], ecx
jmp 0x100054a0
sub dword [ebp - 0x214], ecx
inc ecx
push 2
pop ebx
cmp ecx, ebx
jl 0x10005480
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x100054cb
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x100054d8
add dword [ebp - 0x214], eax
jmp 0x100054de
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x100054bc
push esi
push esi
call edi
xor eax, eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x100054f9
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x10005506
add dword [ebp - 0x214], eax
jmp 0x1000550c
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x100054ea
push esi
push esi
call edi
mov dword [ebp - 4], ebx
and dword [ebp - 0x22c], 0
cmp dword [ebp - 0x22c], 4
jge 0x10005556
mov eax, dword [ebp - 0x22c]
and eax, reloc.WS2_32.dll_accept
jns 0x1000553b
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10005548
inc dword [ebp - 0x214]
jmp 0x1000554e
dec dword [ebp - 0x214]
inc dword [ebp - 0x22c]
jmp 0x10005520
mov dword [ebp - 4], 0xfffffffe
call fcn.10005618
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x214], ecx
cmp ecx, 0xffff0001
jge 0x1000557f
imul ecx, ecx, 0xfffffffb
mov dword [ebp - 0x214], ecx
mov eax, ecx
cdq
push 7
pop ebx
idiv ebx
test edx, edx
je 0x10005599
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x214], ecx
test ecx, ecx
jns 0x100055a9
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100055c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], 3
and dword [ebp - 0x218], 0
cmp dword [ebp - 0x218], 2
jge 0x10005641
mov eax, dword [ebp - 0x218]
and eax, reloc.WS2_32.dll_accept
jns 0x10005600
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10005633
inc dword [ebp - 0x214]
jmp 0x10005639
dec dword [ebp - 0x214]
inc dword [ebp - 0x218]
jmp 0x100055e5
mov dword [ebp - 4], 0xfffffffe
call fcn.10005674
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x1000568f
cmp edx, 4
je 0x1000568f
and dword [ebp - 0x214], ecx
jmp 0x10005697
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x1000564f
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push esi
push esi
call edi
mov eax, ebx
mov dword [ebp - 0x214], eax
test eax, eax
jns 0x100056c1
neg eax
mov dword [ebp - 0x214], eax
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100056d7
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 0x100056f3
cmp edx, 4
je 0x100056f3
and dword [ebp - 0x214], ecx
jmp 0x100056f9
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x100056d9
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x1000572d
cmp edx, 4
je 0x1000572d
and dword [ebp - 0x214], ecx
jmp 0x10005735
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10005713
mov dword [ebp - 4], 4
and dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], 3
jge 0x1000577f
mov eax, dword [ebp - 0x21c]
and eax, reloc.WS2_32.dll_accept
jns 0x10005764
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10005771
inc dword [ebp - 0x214]
jmp 0x10005777
dec dword [ebp - 0x214]
inc dword [ebp - 0x21c]
jmp 0x10005749
mov dword [ebp - 4], 0xfffffffe
call fcn.100057ed
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x214], eax
jge 0x100057b0
imul eax, eax, 0xfffffffb
mov dword [ebp - 0x214], eax
cdq
push 0xd
pop ecx
idiv ecx
test edx, edx
jne 0x100057c6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10005808
cmp edx, 4
je 0x10005808
and dword [ebp - 0x214], ecx
jmp 0x10005810
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x100057c8
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x10005832
cmp edx, 4
je 0x10005832
and dword [ebp - 0x214], ecx
jmp 0x10005838
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10005818
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
and dword [ebp - 0x214], 0
xor eax, eax
sub dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x10005859
cmp dword [ebp - 0x214], 0xffff0001
jge 0x10005880
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 0x1000589c
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x214], eax
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 3
jl 0x1000589e
cmp dword [ebp - 0x214], 0
jge 0x100058b9
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100058d5
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 0x100058f1
cmp edx, 4
je 0x100058f1
and dword [ebp - 0x214], ecx
jmp 0x100058f9
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 4
jl 0x100058d7
xor ecx, ecx
mov eax, ecx
cdq
push 5
pop ebx
idiv ebx
cmp edx, 1
je 0x1000591b
cmp edx, 4
je 0x1000591b
and dword [ebp - 0x214], ecx
jmp 0x10005923
nop
nop
sub dword [ebp - 0x214], ecx
inc ecx
cmp ecx, 3
jl 0x10005901
mov dword [ebp - 4], 5
xor ebx, ebx
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x220], 1
jge 0x1000596e
mov eax, dword [ebp - 0x220]
and eax, reloc.WS2_32.dll_accept
jns 0x10005953
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10005960
inc dword [ebp - 0x214]
jmp 0x10005966
dec dword [ebp - 0x214]
inc dword [ebp - 0x220]
jmp 0x10005938
mov dword [ebp - 4], 0xfffffffe
call fcn.10005a36
mov dword [ebp - 0x214], ebx
push 0xfa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push esi
call edi
cmp ebx, ebx
jge 0x100059a0
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100059bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
xor eax, eax
xor dword [ebp - 0x214], eax
inc eax
cmp eax, 4
jl 0x100059be
cmp dword [ebp - 0x214], ebx
jge 0x100059d8
neg dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cdq
push 7
pop ecx
idiv ecx
test edx, edx
jne 0x100059f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x228], 2
jge 0x10005a5f
mov eax, dword [ebp - 0x228]
and eax, reloc.WS2_32.dll_accept
jns 0x10005a1c
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10005a51
inc dword [ebp - 0x214]
jmp 0x10005a57
dec dword [ebp - 0x214]
inc dword [ebp - 0x228]
jmp 0x10005a01
mov dword [ebp - 4], 0xfffffffe
call fcn.10005a77
mov eax, dword [ebp - 0x214]
call fcn.10075d28
ret