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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov esi, dword [ecx]
mov dword [esp + 0x44], edx
mov dword [esp + 0x7c], ecx
test esi, esi
je 0x1008959a
cmp byte [esi + 0x24], 0
je 0x100883b3
mov edi, esp
mov edx, esi
mov ecx, edi
push dword [esp + 0x44]
call fcn.1009a450
add esp, 4
mov eax, dword [esp]
cmp eax, 2
je 0x10088c8e
cmp eax, 1
jne 0x100889fe
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov dword [eax], 0
mov byte [eax + 8], 0xb
mov edi, eax
mov eax, dword [esp + 0xc]
movsd xmm0, qword [esp + 4]
mov dword [esp + 0x34], eax
movsd qword [esp + 0x2c], xmm0
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov ecx, dword [esp + 0x34]
mov esi, eax
mov dword [esi + 8], ecx
movsd xmm0, qword [esp + 0x2c]
movsd qword [esi], xmm0
jmp 0x10088bb5
lea eax, [esi + 0x10]
mov dword [esp + 0x40], esi
mov dword [esp + 0x74], eax
mov ecx, esi
mov edx, 1
call fcn.1009a650
mov edi, dword [esi]
mov ecx, dword [edi + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100889c1
mov dword [esp + 0x1c], 0
mov cl, byte [edi + 0xc]
lea eax, [edi + 8]
test cl, cl
jne 0x1008957e
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov dword [esp], ebp
mov dword [esp + 4], ecx
cmp dword [edi + 0x158], ebp
jbe 0x10089531
mov edx, dword [edi + 0x150]
imul ebx, ebp, 0xf0
cmp dword [edx + ebx], 1
jne 0x10089531
cmp dword [edx + ebx + 0x30], ecx
jne 0x10089531
mov eax, edi
mov esi, dword [edx + ebx + 0x54]
mov dword [esp], ebp
lea edi, [edx + ebx]
mov dword [esp + 4], ecx
cmp dword [edi], 1
jne 0x10089531
lea edi, [edx + ebx + 0x30]
cmp dword [edi], ecx
jne 0x10089531
mov ebp, esi
test esi, esi
mov ecx, 0
mov ebx, dword [edx + ebx + 0x5c]
cmovs ebp, ecx
cmp byte [esp + 0x1c], 0
jne 0x10088480
mov ecx, dword [0x104dec50]
mov esi, eax
test ecx, ecx
jne 0x100889d1
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov edx, dword [0x104dec60]
test edx, edx
je 0x10088750
cmp edx, 0x100f30b0
jne 0x1008877b
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
cmp ebp, ebx
ja 0x100887af
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
nop dword [eax]
mov ebx, dword [esi]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x10088722
xor eax, eax
movzx edx, byte [ebx + 0xc]
lea ecx, [ebx + 8]
test dl, dl
jne 0x1008953a
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
cmp dword [ebx + 0x158], ecx
jbe 0x10089531
mov edi, dword [ebx + 0x150]
imul esi, ecx, 0xf0
cmp dword [edi + esi], 1
jne 0x10089531
cmp dword [edi + esi + 0x30], eax
jne 0x10089531
mov dword [esp + 0x78], ebx
movzx ebx, byte [edi + esi + 0x34]
mov dl, 2
lea ebp, [edi + esi + 0x34]
mov dword [esp + 0x20], edx
cmp ebx, 5
je 0x1008854e
cmp ebx, 3
jne 0x10088655
cmp byte [ebp + 1], 0
je 0x10088655
mov dword [esp], ecx
lea ebp, [edi + esi]
mov dword [esp + 4], eax
cmp dword [ebp], 1
jne 0x10089531
lea ebx, [edi + esi + 0x30]
cmp dword [ebx], eax
jne 0x10089531
movzx edx, byte [edi + esi + 0xe7]
mov dword [esp], ecx
mov dword [esp + 4], eax
cmp dword [ebp], 1
mov byte [esp + 0x20], dl
jne 0x10089564
cmp dword [ebx], eax
jne 0x10089564
cmp byte [esp + 0x20], 0
je 0x10088620
lea edx, [edi + esi + 8]
mov byte [edx + 0xdf], 0
mov edx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
cmp dword [edx + 0x158], ecx
jbe 0x10089531
mov edx, dword [edx + 0x150]
cmp dword [edx + esi], 1
jne 0x10089531
cmp dword [edx + esi + 0x30], eax
jne 0x10089531
mov edi, dword [edx + esi + 0x54]
mov dword [esp], ecx
lea ebx, [edx + esi]
mov dword [esp + 4], eax
cmp dword [ebx], 1
jne 0x10089531
lea ecx, [edx + esi + 0x30]
cmp dword [ecx], eax
jne 0x10089531
test edi, edi
jns 0x10088609
xor edi, edi
sub edi, dword [edx + esi + 0x5c]
mov ebx, 0
mov dword [esp + 0x20], 0
jb 0x10088659
mov ebx, edi
jmp 0x10088659
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
push dword [eax]
call dword [ecx]
add esp, 4
mov ebp, eax
mov eax, dword [edi + esi + 0x64]
lea ebx, [edi + esi + 0x60]
test eax, eax
je 0x1008864a
push dword [ebx]
mov esi, edx
call dword [eax + 0xc]
mov edx, esi
add esp, 4
mov al, 3
mov dword [ebx], ebp
mov dword [ebx + 4], edx
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test al, al
jne 0x1008866e
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1008872e
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov edx, dword [0x104dec60]
test edx, edx
je 0x100886a0
cmp edx, 0x100f30b0
jne 0x100886c7
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100886f3
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov ecx, 0x100f30b0
cmove edx, ecx
mov dword [0x104dec60], edx
cmp edx, 0x100f30b0
je 0x10088686
mov edx, dword [0x104dec78]
test edx, edx
jne 0x100886f0
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov ecx, 0x100f4ef0
cmove edx, ecx
mov dword [0x104dec78], edx
push esi
call edx
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
cmp al, 1
je 0x10088b73
cmp al, 3
je 0x10088b6c
cmp al, 2
je 0x10088bf7
xor eax, eax
test ebx, ebx
je 0x100884c0
jmp 0x100887d3
call fcn.100fa7c0
xor al, 1
jmp 0x100884dd
call fcn.100fa7c0
test al, al
jne 0x1008866e
mov eax, dword [esp + 0x78]
mov byte [eax + 0xc], 1
jmp 0x1008866e
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov ecx, 0x100f30b0
cmove edx, ecx
mov dword [0x104dec60], edx
cmp edx, 0x100f30b0
je 0x100884a0
mov edx, dword [0x104dec78]
test edx, edx
jne 0x100887a4
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov ecx, 0x100f4ef0
cmove edx, ecx
mov dword [0x104dec78], edx
push edi
call edx
cmp ebp, ebx
jbe 0x100884b4
mov esi, dword [esp + 0x40]
mov ecx, esp
mov edx, esi
push dword [esp + 0x44]
call fcn.1009a450
add esp, 4
mov eax, dword [esp]
mov ebx, dword [esp + 0x28]
cmp eax, 2
jne 0x10088ee8
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x80]
push dword [esp + 0x44]
call fcn.1004cbb0
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, 3
je 0x10088b6c
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x84]
test eax, eax
jne 0x10088c5e
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
cmp dword [eax], 1
jne 0x10088840
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x18]
push dword [ecx + 0x14]
call dword [eax + 0x14]
add esp, 4
jmp 0x1008884b
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], 0
sete al
mov byte [esp + 0x1b], al
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x1008885e
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
dec eax
cmp eax, 5
jb 0x10088970
mov ecx, dword [0x104d51b8]
test ecx, ecx
je 0x10088970
mov al, 1
cmp ecx, 1
je 0x1008888d
cmp ecx, 2
jne 0x100889e7
mov al, 2
movzx edx, al
mov ecx, 0x104d51b8
call fcn.10109d10
test al, al
je 0x10088970
mov ecx, dword [0x104d51bc]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x100895ce
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x2c], 0
mov dword [esp], 0x1041c610
mov dword [esp + 4], 2
mov dword [esp + 8], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 1
mov edx, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x2c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x68], fcn.10008370
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x70], 0x1000b250
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x54], 0x10419960
call fcn.1010a570
nop dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov esi, dword [esp + 0x40]
movzx eax, byte [esp + 0x1b]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
lea ecx, [esp + 0x2c]
mov edx, esi
push eax
lea eax, [esp + 4]
push eax
call fcn.1009a7a0
add esp, 8
cmp byte [esp + 0x2c], 3
jne 0x10088c99
cmp byte [esp + 0x1b], 0
jne 0x10088cf9
cmp byte [esi + 0x24], 0
je 0x100883be
jmp 0x10088326
call fcn.100fa7c0
xor al, 1
mov dword [esp + 0x1c], eax
jmp 0x100883e9
call fcn.100fa7c0
test al, al
jne 0x10088480
mov byte [esi + 0xc], 1
jmp 0x10088480
mov ecx, 0x104d51b8
call fcn.10109c60
test al, al
jne 0x1008888d
jmp 0x10088970
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov eax, dword [0x104debf8]
cmp eax, 4
jb 0x10088a15
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
add eax, 0xfffffffe
cmp eax, 4
jb 0x10088b04
mov ecx, dword [0x104d51c4]
test ecx, ecx
je 0x10088b04
mov al, 1
cmp ecx, 1
je 0x10088a46
cmp ecx, 2
jne 0x10089059
mov al, 2
movzx edx, al
mov ecx, 0x104d51c4
call fcn.10109d10
test al, al
je 0x10088b04
mov ecx, dword [0x104d51c8]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x100895f8
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x2c], 0
mov dword [esp], 0x1041c590
mov dword [esp + 4], 1
lea ebp, [ecx + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea esi, [esp + 0x58]
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], edx
lea esi, [esp + 0x2c]
lea edx, [esp + 0x80]
mov dword [esp + 0x50], fcn.1001a660
mov dword [esp + 0x14], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 1
mov dword [esp + 0x88], 0x10419960
mov dword [esp + 0x6c], ebp
lea edx, [esp + 0x64]
call fcn.1010a570
mov ebx, dword [esp + 0x58]
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov dword [eax], 0
mov byte [eax + 8], 0xb
mov edi, eax
mov al, byte [esp + 0x2e]
mov byte [esp + 2], al
movzx eax, word [esp + 0x2c]
mov word [esp], ax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov byte [eax], 0
mov esi, eax
movzx eax, word [esp]
mov word [esi + 1], ax
mov al, byte [esp + 2]
mov byte [esi + 3], al
mov dword [esi + 4], ebx
jmp 0x10088bb5
mov al, 1
jmp 0x10088ec9
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov dword [eax], 0
mov edi, eax
mov byte [eax + 8], 0xb
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov esi, eax
mov dword [eax], 1
mov ebx, dword [edi]
test ebx, ebx
je 0x10088be9
mov ebp, dword [edi + 4]
push ebx
call dword [ebp]
add esp, 4
cmp dword [ebp + 4], 0
je 0x10088be9
cmp dword [ebp + 8], 9
jae 0x10088bd9
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x10088be1
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [edi], esi
mov dword [edi + 4], 0x1041c558
jmp 0x10088d16
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov ecx, str.send_stream_capacity_unexpectedly_closed
mov edx, 0x28
mov dword [eax], 0
mov edi, eax
mov byte [eax + 8], 0xb
call fcn.1004c640
mov ebx, dword [edi]
mov esi, eax
test ebx, ebx
je 0x10088d0d
mov ebp, dword [edi + 4]
push ebx
call dword [ebp]
add esp, 4
cmp dword [ebp + 4], 0
je 0x10088d0d
cmp dword [ebp + 8], 9
jae 0x10088cfd
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x10088d05
cmp eax, 2
jne 0x10088ff5
mov ecx, esi
xor edx, edx
call fcn.1009a650
cmp dword [esi + 0x10], 1
jne 0x10089070
mov eax, dword [esi + 0x18]
push dword [esi + 0x14]
call dword [eax + 0x14]
add esp, 4
test al, al
je 0x1008907a
mov ecx, esi
call fcn.1009c440
mov edi, eax
jmp 0x10088d16
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov dword [eax], 0
mov byte [eax + 8], 0xb
mov edi, eax
mov eax, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x2c]
mov dword [esp + 8], eax
movsd qword [esp], xmm0
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov ecx, dword [esp + 8]
mov esi, eax
mov dword [esi + 8], ecx
movsd xmm0, qword [esp]
jmp 0x100883aa
xor edi, edi
jmp 0x10088d16
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [edi], esi
mov dword [edi + 4], 0x1041909c
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
test esi, esi
je 0x100895ab
mov ecx, esi
call fcn.100267f0
mov eax, dword [esi]
lock dec dword [eax]
jne 0x10088d39
mov ecx, esi
call fcn.10064c00
mov eax, dword [esi + 0xc]
lock dec dword [eax]
jne 0x10088d49
lea ecx, [esi + 0xc]
call fcn.10081210
add esi, 0x10
mov ecx, esi
call fcn.100544e0
mov ebx, dword [esp + 0x7c]
mov esi, dword [ebx]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
test edi, edi
mov dword [ebx], 0
je 0x10088ec7
mov dword [esp + 0x64], edi
mov eax, dword [0x104debf8]
cmp eax, 4
jb 0x10088d88
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
add eax, 0xfffffffe
cmp eax, 4
jb 0x10088e79
mov ecx, dword [0x104d517c]
test ecx, ecx
je 0x10088e79
mov al, 1
cmp ecx, 1
je 0x10088db9
cmp ecx, 2
jne 0x10088ed4
mov al, 2
movzx edx, al
mov ecx, 0x104d517c
call fcn.10109d10
test al, al
je 0x10088e79
mov ecx, dword [0x104d5180]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x100895e7
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x2c], 0
mov dword [esp], 0x1041c678
mov dword [esp + 4], 1
lea ebx, [ecx + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 0x30], edx
lea edx, [esp + 0x64]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea esi, [esp + 0x58]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], esi
mov esi, esp
mov dword [esp + 0x5c], 0x1003edb0
mov dword [esp + 0x14], 1
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x10419960
mov dword [esp + 0x80], edx
lea edx, [esp + 0x80]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], ebx
call fcn.1010a570
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
test eax, eax
je 0x10088eb5
mov ecx, dword [esi + 4]
push eax
call dword [ecx]
add esp, 4
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x10088eb5
mov esi, dword [esi]
cmp dword [eax + 8], 9
jae 0x10088ea5
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x10088ead
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0x64]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
xor eax, eax
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x104d517c
call fcn.10109c60
test al, al
jne 0x10088db9
jmp 0x10088e79
cmp eax, 1
je 0x1008834d
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov eax, dword [0x104debf8]
cmp eax, 4
jb 0x10088f08
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
add eax, 0xfffffffe
cmp eax, 4
jb 0x10088b04
mov ecx, dword [0x104d51ac]
test ecx, ecx
je 0x10088b04
mov al, 1
cmp ecx, 1
je 0x10088f39
cmp ecx, 2
jne 0x1008951a
mov al, 2
movzx edx, al
mov ecx, 0x104d51ac
call fcn.10109d10
test al, al
je 0x10088b04
mov ecx, dword [0x104d51b0]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10089666
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x2c], 0
mov dword [esp], 0x1041c590
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea esi, [esp + 0x58]
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], edx
lea esi, [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x50], fcn.1001a660
mov dword [esp + 0x14], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edx
lea esi, [esp + 0x80]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x88], 0x10419960
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], edx
jmp 0x10088afb
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008956d
mov dword [eax], 0
mov esi, eax
mov word [eax + 8], 1
call sub.KERNEL32.dll_GetProcessHeap
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10089609
mov dword [eax], ebx
mov edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x10089093
mov ebp, dword [esi + 4]
push ebx
call dword [ebp]
add esp, 4
cmp dword [ebp + 4], 0
je 0x10089093
cmp dword [ebp + 8], 9
jae 0x10089083
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x1008908b
mov ecx, 0x104d51c4
call fcn.10109c60
test al, al
jne 0x10088a46
jmp 0x10088b04
cmp dword [esi + 0x18], 0
je 0x10088c8e
mov byte [esi + 0x24], 1
jmp 0x10088326
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [esi], edi
mov dword [esi + 4], 0x1041b2bc
mov dword [esp + 0x48], esi
mov eax, dword [0x104debf8]
cmp eax, 4
jb 0x100890af
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
add eax, 0xfffffffe
cmp eax, 4
jb 0x10089194
mov ecx, dword [0x104d51d0]
test ecx, ecx
je 0x10089194
mov al, 1
cmp ecx, 1
je 0x100890e0
cmp ecx, 2
jne 0x100894cc
mov al, 2
movzx edx, al
mov ecx, 0x104d51d0
call fcn.10109d10
test al, al
je 0x10089194
mov ecx, dword [0x104d51d4]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10089652
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x2c], 0
mov dword [esp], 0x1041c630
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea esi, [esp + 0x48]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x10], edx
lea esi, [esp + 0x4c]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x5c], 0x1003edb0
mov dword [esp + 0x14], 1
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], edx
lea esi, [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
lea edx, [esp + 0x64]
mov dword [esp + 0x54], 0x10419960
call fcn.1010a570
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
test ecx, ecx
cmove eax, ecx
je 0x100891d6
mov esi, dword [eax]
mov edi, dword [eax + 4]
push esi
call dword [edi + 0x10]
add esp, 4
xor edx, 0xe1c6426b
xor eax, 0x2b132845
or eax, edx
je 0x100891cd
push esi
call dword [edi + 0xc]
add esp, 4
mov esi, eax
mov edi, edx
test eax, eax
jne 0x100891a6
jmp 0x100891d6
cmp byte [esi], 0
je 0x100894a4
mov dword [esp + 0x1c], 2
mov esi, dword [esp + 0x40]
mov ebp, dword [esi]
mov ecx, dword [ebp + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100894b0
mov dword [esp + 0x24], 0
mov al, byte [ebp + 0xc]
lea ebx, [ebp + 8]
test al, al
jne 0x10089613
mov ecx, dword [esi + 8]
mov edi, dword [esi + 4]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100894c0
xor eax, eax
mov dword [esp + 0x28], ebx
lea ecx, [esi + 8]
mov dl, byte [esi + 0xc]
test dl, dl
jne 0x10089632
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], eax
lea eax, [ebp + 0x120]
mov dword [esp + 0x2c], edi
mov dword [esp], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 4], ecx
cmp dword [ebp + 0x158], edi
jbe 0x10089531
mov eax, dword [ebp + 0x150]
imul ebx, edi, 0xf0
cmp dword [eax + ebx], 1
jne 0x10089531
cmp dword [eax + ebx + 0x30], ecx
jne 0x10089531
lea ecx, [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x44], ecx
lea ecx, [esi + 0x10]
lea esi, [ebp + 0x168]
mov dword [esp + 0x98], ecx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x9c], eax
lea ecx, [ebp + 0xa0]
lea eax, [ebp + 0x108]
push eax
push esi
lea eax, [esp + 0x34]
push eax
push dword [esp + 0xa4]
call fcn.1009bbb0
add esp, 0x10
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], esi
push esi
call fcn.100224d0
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], ebp
cmp dword [ebp + 0x158], edi
jbe 0x10089564
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x150]
cmp dword [eax + ebx], 1
jne 0x10089564
cmp dword [eax + ebx + 0x30], ecx
jne 0x10089564
mov ecx, dword [eax + ebx + 0xcc]
mov edx, dword [eax + ebx + 0xc8]
mov dword [eax + ebx + 0xcc], 0
test ecx, ecx
je 0x1008935f
push edx
call dword [ecx + 4]
add esp, 4
mov ecx, dword [esp + 0x74]
xor eax, eax
movsd xmm0, qword [esp + 0x2c]
mov edx, esp
xor ecx, 1
movsd qword [esp], xmm0
or ecx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
sete al
push eax
call fcn.10018f90
add esp, 4
cmp byte [esp + 0x78], 0
mov edi, dword [esp + 0x28]
jne 0x100893ac
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100894e3
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x100893d9
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x100893ee
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x10089418
mov eax, dword [0x104dec78]
test eax, eax
jne 0x10089415
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push esi
call eax
cmp byte [esp + 0x24], 0
jne 0x1008942c
mov eax, dword [0x104dec50]
test eax, eax
jne 0x10089500
mov esi, dword [edi]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x10089455
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x10089471
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov edi, dword [esp + 0x48]
jmp 0x10088d16
mov eax, dword [0x104dec78]
test eax, eax
jne 0x10089498
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push esi
call eax
mov edi, dword [esp + 0x48]
jmp 0x10088d16
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
jmp 0x100891de
call fcn.100fa7c0
xor al, 1
mov dword [esp + 0x24], eax
jmp 0x10089201
call fcn.100fa7c0
xor al, 1
jmp 0x10089233
mov ecx, 0x104d51d0
call fcn.10109c60
test al, al
jne 0x100890e0
jmp 0x10089194
call fcn.100fa7c0
test al, al
jne 0x100893ac
mov eax, dword [esp + 0x94]
mov byte [eax + 0xc], 1
jmp 0x100893ac
call fcn.100fa7c0
test al, al
jne 0x1008942c
mov eax, dword [esp + 0x1c]
mov byte [eax + 0xc], 1
jmp 0x1008942c
mov ecx, 0x104d51ac
call fcn.10109c60
test al, al
jne 0x10088f39
jmp 0x10088b04
mov ecx, esp
call fcn.10018ef0
ud2
mov dword [esp], ecx
mov ecx, 0x1044a65b
mov edx, 0x2b
mov byte [esp + 4], al
push 0x1041c520
push 0x1041ab9c
lea eax, [esp + 8]
push eax
call fcn.1000a790
add esp, 0xc
ud2
mov ecx, esp
call fcn.10018f40
ud2
mov ecx, 0xc
mov edx, 4
call fcn.10006540
ud2
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x1044a65b
mov edx, 0x2b
mov byte [esp + 4], al
push 0x1041c510
jmp 0x10089550
mov ecx, 0x1041a02c
mov edx, 0x36
push 0x1041a064
jmp 0x100895c4
mov eax, dword [esp + 0x7c]
mov ecx, 0x1044acbf
mov edx, 0x28
mov dword [eax], 0
push 0x1041a0cc
call fcn.1004d560
add esp, 4
ud2
mov ecx, 0x1041992d
mov edx, 0x22
push 0x1041c620
call fcn.1000a730
add esp, 4
ud2
mov ecx, 0x1041992d
mov edx, 0x22
push 0x1041c680
jmp 0x100895dd
mov ecx, 0x1041992d
mov edx, 0x22
push 0x1041c668
jmp 0x100895dd
mov ecx, 4
jmp 0x10089572
mov eax, dword [esp + 0x24]
mov ecx, 0x1044a65b
mov edx, 0x2b
mov dword [esp], ebx
mov byte [esp + 4], al
push 0x1041c648
jmp 0x10089550
mov dword [esp], ecx
mov ecx, 0x1044a65b
mov edx, 0x2b
mov byte [esp + 4], al
push 0x1041c658
push 0x1041af94
jmp 0x10089555
mov ecx, 0x1041992d
mov edx, 0x22
push 0x1041c638
jmp 0x100895dd
mov ecx, 0x1041992d
mov edx, 0x22
push 0x1041c600
jmp 0x100895dd