Function at 0x100165f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10028ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100812a0]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0xb4]
push ecx
mov dword [esp + 0x74], eax
call fcn.10018000
add esp, 4
lea eax, [esp + 0xb4]
call fcn.10014770
mov ebp, eax
xor ebx, ebx
mov dword [esp + 0x40], ebp
cmp ebp, ebx
jne 0x10016666
or eax, 0xffffffff
jmp 0x10017425
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x10016672
cmp eax, ebx
jne 0x1001668d
mov ecx, 2
mov word [ebp + 0x4c], 0x202
mov byte [ebp + 0x4e], bl
mov dword [ebp + 0x50], 0x2000
mov byte [ebp + 0x54], cl
mov dword [ebp + 0x48], ecx
cmp eax, 1
ja 0x1001669c
lea edx, [ebp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x100
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x56], bl
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], 0x100
mov dword [esp + 0x4c], ebx
call fcn.10020596
add esp, 4
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x54], bl
call fcn.100133d0
mov dword [esp + 0x1c0], ebx
mov ebx, 5
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x10016719
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x80
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 0x34e9f770
add dword [esp + 0x48], 4
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x1001674b
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x81
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 1
add dword [esp + 0x48], 4
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x1001677d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x82
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 1
add dword [esp + 0x48], 4
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x100167af
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x83
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 1
add dword [esp + 0x48], 4
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x100167e1
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x84
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 1
add dword [esp + 0x48], 4
lea esi, [esp + 0x44]
call fcn.100135e0
test al, al
je 0x10016813
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov byte [eax + ecx], 0x85
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x48], eax
mov dword [eax + edx], 1
add dword [esp + 0x48], 4
mov esi, 1
cmp dword [ebp + 0x20], esi
ja 0x1001682d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
mov eax, ebp
call fcn.10014ed0
xor ebx, ebx
mov dword [esp + 0x6c], 0xfffffffe
mov dword [esp + 0x38], ebx
cmp dword [ebp + 0x20], esi
ja 0x10017396
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.10014f80
mov edi, eax
cmp edi, ebx
jle 0x10017396
mov esi, ebp
call fcn.10015360
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x82], bl
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov word [esp + 0x80], 0x101
mov dword [esp + 0x84], ebx
mov byte [esp + 0x1c0], 1
cmp edi, 1
jl 0x1001738f
mov al, byte [ecx]
test al, al
movzx eax, al
jns 0x100168af
movzx edx, byte [ecx + 1]
and eax, 0x7f
shl eax, 0x10
or eax, edx
cmp eax, ebx
jne 0x1001738f
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0xe
lea edi, [esp + 0x80]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
call fcn.10013660
cmp eax, ebx
je 0x100168df
mov dword [esp + 0x6c], ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 6
lea edi, [esp + 0x80]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10013660
cmp eax, ebx
je 0x10016ae9
push 0x100
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x1c], ebx
call fcn.10020596
add esp, 4
mov dword [esp + 0x14], eax
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.100133d0
mov byte [esp + 0x1c0], 2
xor ebp, ebp
jmp 0x10016952
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x20], bl
jne 0x10016988
mov ebx, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x21], 1
call fcn.100135e0
test al, al
je 0x10016988
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx], bl
cmp dword [esp + 0x18], ebx
jge 0x10016988
mov dword [esp + 0x18], ebx
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100169bf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x80
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x34e9f770
add dword [esp + 0x18], 4
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100169ed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], ebp
add dword [esp + 0x18], 4
test ebp, ebp
jne 0x10016a23
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016a23
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x12de5
add dword [esp + 0x18], 4
mov eax, 0x12de5
sub eax, ebp
mov edi, eax
cmp eax, 0x1b58
jl 0x10016a38
mov edi, 0x1b58
cmp eax, edi
jg 0x10016a95
mov ebx, 1
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016a5e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0xd
inc dword [esp + 0x18]
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016a95
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [eax + edx], 0x90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [ecx + eax], 1
add dword [esp + 0x18], 4
push edi
lea edx, [ebp + 0x1002c280]
push edx
push 0xc
lea eax, [esp + 0x20]
call fcn.100134a0
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x20], 1
ja 0x10016ac4
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10014ed0
test eax, eax
js 0x10016ad2
add ebp, edi
cmp ebp, 0x12de5
jl 0x10016950
lea esi, [esp + 0x14]
mov byte [esp + 0x1c0], 1
call fcn.10013250
mov ebp, dword [esp + 0x40]
xor ebx, ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 7
lea edi, [esp + 0x80]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10013660
cmp eax, ebx
je 0x10016cef
push 0x100
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x1c], ebx
call fcn.10020596
add esp, 4
mov dword [esp + 0x14], eax
push 2
lea eax, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.100133d0
mov byte [esp + 0x1c0], 3
xor ebp, ebp
jmp 0x10016b57
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x20], bl
jne 0x10016b8e
mov ebx, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x21], 1
call fcn.100135e0
test al, al
je 0x10016b8e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx], 2
cmp dword [esp + 0x18], ebx
jge 0x10016b8e
mov dword [esp + 0x18], ebx
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016bc5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x80
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x34e9f770
add dword [esp + 0x18], 4
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016bf3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], ebp
add dword [esp + 0x18], 4
test ebp, ebp
jne 0x10016c29
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016c29
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x195d5
add dword [esp + 0x18], 4
mov eax, 0x195d5
sub eax, ebp
mov edi, eax
cmp eax, 0x1b58
jl 0x10016c3e
mov edi, 0x1b58
cmp eax, edi
jg 0x10016c9b
mov ebx, 1
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016c64
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0xd
inc dword [esp + 0x18]
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016c9b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [eax + edx], 0x90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [ecx + eax], 1
add dword [esp + 0x18], 4
push edi
lea edx, [ebp + 0x1003f068]
push edx
push 0xc
lea eax, [esp + 0x20]
call fcn.100134a0
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x20], 1
ja 0x10016cca
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10014ed0
test eax, eax
js 0x10016cd8
add ebp, edi
cmp ebp, 0x195d5
jl 0x10016b55
lea esi, [esp + 0x14]
mov byte [esp + 0x1c0], 1
call fcn.10013250
mov ebp, dword [esp + 0x40]
xor ebx, ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 8
lea edi, [esp + 0x80]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10013660
cmp eax, ebx
je 0x10016efa
push 0x100
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x1c], ebx
call fcn.10020596
add esp, 4
mov dword [esp + 0x14], eax
push 3
lea eax, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.100133d0
mov byte [esp + 0x1c0], 4
xor ebp, ebp
jmp 0x10016d62
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x20], bl
jne 0x10016d99
mov ebx, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x21], 1
call fcn.100135e0
test al, al
je 0x10016d99
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx], 3
cmp dword [esp + 0x18], ebx
jge 0x10016d99
mov dword [esp + 0x18], ebx
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016dd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x80
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x34e9f770
add dword [esp + 0x18], 4
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016dfe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], ebp
add dword [esp + 0x18], 4
test ebp, ebp
jne 0x10016e34
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016e34
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0xda35
add dword [esp + 0x18], 4
mov eax, 0xda35
sub eax, ebp
mov edi, eax
cmp eax, 0x1b58
jl 0x10016e49
mov edi, 0x1b58
cmp eax, edi
jg 0x10016ea6
mov ebx, 1
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016e6f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0xd
inc dword [esp + 0x18]
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016ea6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [eax + edx], 0x90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [ecx + eax], 1
add dword [esp + 0x18], 4
push edi
lea edx, [ebp + 0x10058640]
push edx
push 0xc
lea eax, [esp + 0x20]
call fcn.100134a0
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x20], 1
ja 0x10016ed5
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10014ed0
test eax, eax
js 0x10016ee3
add ebp, edi
cmp ebp, 0xda35
jl 0x10016d60
lea esi, [esp + 0x14]
mov byte [esp + 0x1c0], 1
call fcn.10013250
mov ebp, dword [esp + 0x40]
xor ebx, ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 9
lea edi, [esp + 0x80]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10013660
cmp eax, ebx
je 0x10017100
push 0x100
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x26], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x1c], ebx
call fcn.10020596
add esp, 4
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.100133d0
mov byte [esp + 0x1c0], 5
xor ebp, ebp
jmp 0x10016f68
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x20], bl
jne 0x10016f9f
mov ebx, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x21], 1
call fcn.100135e0
test al, al
je 0x10016f9f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx], 4
cmp dword [esp + 0x18], ebx
jge 0x10016f9f
mov dword [esp + 0x18], ebx
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10016fd6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x80
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x34e9f770
add dword [esp + 0x18], 4
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10017004
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], ebp
add dword [esp + 0x18], 4
test ebp, ebp
jne 0x1001703a
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x1001703a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0x8f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [edx + eax], 0x13795
add dword [esp + 0x18], 4
mov eax, 0x13795
sub eax, ebp
mov edi, eax
cmp eax, 0x1b58
jl 0x1001704f
mov edi, 0x1b58
cmp eax, edi
jg 0x100170ac
mov ebx, 1
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10017075
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0xd
inc dword [esp + 0x18]
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100170ac
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [eax + edx], 0x90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [ecx + eax], 1
add dword [esp + 0x18], 4
push edi
lea edx, [ebp + 0x10066078]
push edx
push 0xc
lea eax, [esp + 0x20]
call fcn.100134a0
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x20], 1
ja 0x100170db
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10014ed0
test eax, eax
js 0x100170e9
add ebp, edi
cmp ebp, 0x13795
jl 0x10016f66
lea esi, [esp + 0x14]
mov byte [esp + 0x1c0], 1
call fcn.10013250
mov ebp, dword [esp + 0x40]
xor ebx, ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 0xa
lea edi, [esp + 0x80]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10013660
cmp eax, ebx
je 0x1001738f
cmp dword [esp + 0x70], ebx
je 0x1001738f
mov esi, dword [esp + 0x1cc]
cmp esi, ebx
jle 0x1001738f
push 5
lea eax, [esp + 0x18]
call fcn.10013220
mov byte [esp + 0x1c0], 6
mov dword [esp + 0x38], ebx
cmp esi, ebx
jle 0x1001737a
mov edi, dword [esp + 0x70]
jmp 0x10017168
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x20], bl
jne 0x1001719f
mov ebx, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x21], 1
call fcn.100135e0
test al, al
je 0x1001719f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ecx + edx], 5
cmp dword [esp + 0x18], ebx
jge 0x1001719f
mov dword [esp + 0x18], ebx
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100171d6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0x80
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [eax + edx], 0x34e9f770
add dword [esp + 0x18], 4
lea esi, [esp + 0x14]
call fcn.100135e0
mov ebp, dword [esp + 0x38]
test al, al
je 0x10017208
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0x8b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [eax + edx], ebp
add dword [esp + 0x18], 4
test ebp, ebp
jne 0x10017241
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10017241
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0x8f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1cc]
inc eax
mov dword [esp + 0x18], eax
mov dword [eax + edx], ecx
add dword [esp + 0x18], 4
mov eax, dword [esp + 0x1cc]
sub eax, ebp
mov ebp, eax
cmp eax, 0x1b58
jl 0x10017258
mov ebp, 0x1b58
cmp eax, ebp
jg 0x10017335
mov eax, dword [esp + 0x1cc]
cdq
push edx
push eax
lea ebx, [esp + 0xa0]
call fcn.1000dc70
add esp, 8
mov ebx, 0x1f
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100172dc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [edx + eax], 0xe8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ecx + edx + 1], 0x11
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x18], eax
mov byte [eax + ecx], 0x1c
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
add eax, dword [esp + 0x14]
push 0x1c
lea edx, [esp + 0x9c]
push edx
push eax
call fcn.10025550
add esp, 0xc
add dword [esp + 0x18], 0x1c
mov ebx, 1
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x100172fe
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [edx + eax], 0xd
inc dword [esp + 0x18]
mov ebx, 5
lea esi, [esp + 0x14]
call fcn.100135e0
test al, al
je 0x10017335
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ecx + edx], 0x90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov dword [eax + ecx], 1
add dword [esp + 0x18], 4
mov esi, dword [esp + 0x38]
push ebp
lea edx, [esi + edi]
push edx
push 0xc
lea eax, [esp + 0x20]
call fcn.100134a0
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x20], 1
ja 0x10017365
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10014ed0
test eax, eax
js 0x10017378
add esi, ebp
mov dword [esp + 0x38], esi
cmp esi, dword [esp + 0x1cc]
jl 0x10017166
xor ebx, ebx
lea esi, [esp + 0x14]
mov byte [esp + 0x1c0], 1
call fcn.10013250
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x1c0], bl
mov esi, 1
cmp dword [ebp + 0x20], esi
ja 0x100173aa
lea edx, [ebp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x100173b5
cmp eax, ebx
jne 0x100173e2
cmp dword [ebp + 0x30], ebx
jne 0x100173e2
mov eax, dword [ebp + 0x1c]
push eax
mov dword [ebp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
push ebx
lea ecx, [ebp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, esi
jne 0x100173e2
push ebp
mov ecx, 0x10083b78
call fcn.10015480
mov dword [esp + 0x1c0], 0xffffffff
cmp byte [esp + 0x50], bl
jne 0x10017421
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x10017421
cmp byte [esp + 0x52], bl
je 0x10017414
mov edx, dword [esp + 0x4c]
push edx
push ebx
push eax
call fcn.10025370
mov eax, dword [esp + 0x50]
add esp, 0xc
sub eax, dword [esp + 0x54]
push eax
call fcn.100201f7
add esp, 4
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.100201e8
add esp, 0x1b0
ret