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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x102beb54]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, ecx
mov byte [esp + 7], 0
push ebx
mov dword [esp + 0x14], eax
xor ecx, ecx
push esi
mov ebx, dword [eax + 8]
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x64], ecx
push edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x6c], ecx
cmp dword [eax + 0x30], ecx
jg 0x1008c95a
push 0
push 0
push 0
mov edx, 0x14
mov ecx, ebx
call fcn.1003e6a0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x6c], eax
jmp 0x1008c990
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x14]
xorps xmm0, xmm0
mov edi, dword [edi + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], edi
movlpd qword [esp + 0x48], xmm0
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x44], eax
cmp esi, eax
jae 0x1008cba7
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x40]
mov edi, dword [esi]
mov eax, dword [eax]
or eax, dword [ebx + 4]
mov ebx, dword [esp + 0x34]
jne 0x1008ca64
test byte [esi + 0xa], 2
jne 0x1008ca64
test byte [edi + 4], 1
jne 0x1008ca64
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x70]
mov edx, edi
mov byte [esp + 0x84], 3
mov dword [esp + 0x74], fcn.10055950
mov dword [esp + 0x78], 0x10055a60
mov dword [esp + 0x88], eax
call fcn.10051100
cmp byte [esp + 0x84], 0
je 0x1008ca5c
mov edx, edi
mov edi, dword [esp + 0x1c]
push 0
push 0
mov ecx, dword [edi]
call fcn.100549d0
mov edx, dword [esp + 0x60]
mov ecx, dword [edi]
push eax
call fcn.10054420
add esp, 0xc
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x30]
jne 0x1008cb90
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x1008cb8c
test byte [edx + 0x24], 8
je 0x1008ca93
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x1008ca93
test cl, cl
js 0x1008cb8c
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x1008cb8c
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x1008cb8c
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.10053750
test eax, eax
je 0x1008cb88
mov edx, dword [esi + 0x1c]
xor edi, edi
cmp edx, 0x40
jl 0x1008cae1
mov dword [esp + 0x38], accept
jmp 0x1008cafa
mov eax, edx
xor ecx, ecx
bts edi, eax
cmp eax, 0x20
cmovae ecx, edi
xor edi, ecx
cmp eax, 0x40
cmovae ecx, edi
mov dword [esp + 0x38], ecx
cmp byte [esp + 0x13], 0
jne 0x1008cb26
mov ecx, dword [esp + 0x60]
add edx, edx
mov eax, dword [ecx + 4]
push dword [eax + edx*8]
push dword [ecx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.10022360
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x38]
mov ecx, edi
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x20]
or ecx, eax
jne 0x1008cb88
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
call fcn.1008d810
add esp, 4
test eax, eax
jne 0x1008d4dc
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
or dword [esp + 0x3c], edi
mov edi, dword [esp + 0x20]
mov eax, dword [eax + 0x30]
or edi, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jmp 0x1008cb94
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add esi, 0x30
cmp esi, dword [esp + 0x44]
jb 0x1008c9e0
mov esi, dword [esp + 0x3c]
jmp 0x1008cbaf
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
movzx eax, cx
not edi
mov ecx, dword [esp + 0x40]
or edi, 0x80000000
not esi
mov word [ecx + 0x28], ax
mov word [ecx + 0x18], ax
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x24], 0x4241
mov ecx, dword [edx + 0x40]
and esi, ecx
and edi, dword [edx + 0x44]
mov dword [esp + 0x3c], esi
mov esi, 0x3f
mov dword [esp + 0x20], edi
movzx edi, word [eax + 0x2a]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edi
movzx eax, di
cmp si, di
jge 0x1008cc02
mov dword [esp + 0x38], esi
jmp 0x1008cc10
movsx esi, di
mov dword [esp + 0x38], esi
xor esi, esi
cmp si, ax
jge 0x1008cc5a
mov ebx, dword [esp + 0x38]
xor esi, esi
mov edi, dword [esp + 0x20]
nop word [eax + eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, edi
or edx, ecx
je 0x1008cc45
inc dword [esp + 0x18]
inc esi
cmp esi, ebx
jl 0x1008cc20
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x44], 0
jg 0x1008cc76
jl 0x1008cc66
test ecx, ecx
jae 0x1008cc76
mov ecx, dword [esp + 0x18]
movsx eax, di
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
movzx eax, ax
movsx edi, ax
mov dword [esp + 0x5c], eax
mov ecx, dword [ecx]
lea edx, [edi*4 + 7]
and edx, 0xfffffff8
lea eax, [edi*4 + 9]
add eax, edi
mov dword [esp + 0x30], edx
and eax, 0xfffffff8
add edx, 0x40
add eax, edx
mov dword [esp + 0x14], eax
cdq
push edx
push eax
test ecx, ecx
je 0x1008ccc2
call fcn.10020250
mov esi, eax
mov dword [esp + 0x30], esi
jmp 0x1008cccd
call fcn.1001fa90
mov esi, eax
mov dword [esp + 0x30], eax
add esp, 8
test esi, esi
je 0x1008d4dc
push dword [esp + 0x14]
push 0
push esi
call fcn.102010e0
lea eax, [esi + 0x40]
add esp, 0xc
mov dword [esi + 0x20], eax
xorps xmm0, xmm0
add eax, dword [esp + 0x30]
mov dword [esi + 8], eax
movlpd qword [esp + 0x48], xmm0
lea eax, [eax + edi*2]
add eax, 2
mov dword [esi + 4], eax
lea eax, [eax + edi*2]
xor edi, edi
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov word [esi + 0x34], ax
dec eax
mov word [esi + 0x32], ax
mov eax, dword [esp + 0x40]
mov dword [eax + 0x20], esi
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], str.auto_index
mov esi, dword [eax + 0x14]
mov dword [esp + 0x5c], esi
cmp esi, dword [esp + 0x44]
jae 0x1008ce7d
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
nop dword [eax]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x30]
jne 0x1008ce68
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x1008ce68
test byte [edx + 0x24], 8
je 0x1008cd8f
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x1008cd8f
test cl, cl
js 0x1008ce68
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x1008ce68
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x1008ce68
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.10053750
test eax, eax
je 0x1008ce64
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dword [esp + 0x48], eax
cmp eax, 0x40
jl 0x1008cdde
mov esi, accept
jmp 0x1008cdf1
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0x30]
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x1008ce60
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebx + 4]
or dword [esp + 0x30], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx]
or dword [esp + 0x14], esi
mov word [eax + edi*2], dx
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
test dword [edx + 4], 0x100
jne 0x1008ce45
test esi, esi
je 0x1008ce36
test dword [esi + 4], 0x100
jne 0x1008ce43
mov ecx, dword [esp + 0x1c]
call fcn.100535d0
test eax, eax
jne 0x1008ce57
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.100535d0
mov ecx, 0x102a70d0
test eax, eax
je 0x1008ce59
mov ecx, dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], ecx
inc edi
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
add esi, 0x30
mov dword [esp + 0x5c], esi
cmp esi, dword [esp + 0x44]
jb 0x1008cd60
mov ebx, dword [esp + 0x34]
xor esi, esi
cmp dword [esp + 0x38], esi
jle 0x1008ced0
mov ebx, dword [esp + 0x28]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, dword [esp + 0x20]
or edx, ecx
je 0x1008cec5
mov eax, dword [ebx + 4]
mov word [eax + edi*2], si
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], 0x102a70d0
inc edi
inc esi
cmp esi, dword [esp + 0x38]
jl 0x1008ce90
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x44], 0
jg 0x1008cf14
jl 0x1008cee2
cmp dword [eax + 0x40], 0
jae 0x1008cf14
mov esi, dword [esp + 0x60]
mov eax, 0x3f
mov edx, dword [esp + 0x28]
cmp ax, word [esi + 0x2a]
jge 0x1008cf18
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + edi*4], 0x102a70d0
inc edi
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x1008cef7
jmp 0x1008cf18
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x54]
mov word [eax + edi*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc edx
mov dword [eax + edi*4], 0x102a70d0
mov eax, dword [ecx + 0x28]
mov dword [esi + 8], eax
inc dword [ecx + 0x28]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov esi, dword [esi + 8]
cmp dword [eax + 0x30], ecx
jg 0x1008cf68
push 0
push edx
push esi
mov edx, 0x6b
mov ecx, ebx
call fcn.1003e6a0
add esp, 0xc
jmp 0x1008cf9a
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x6b
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [esp + 0x28]
mov esi, dword [eax + 8]
call fcn.10065350
mov edx, eax
test edx, edx
je 0x1008cfdf
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x1008cfca
push edx
mov edx, 0xfffffff7
call fcn.1003f280
add esp, 4
jmp 0x1008cfdf
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
inc dword [eax + 0x3c]
movzx eax, byte [edx + 0x2c]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x2c]
shl esi, 4
mov eax, dword [eax]
mov eax, dword [eax + 4]
add esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x44], esi
test byte [esi + 0x30], 0x10
je 0x1008d115
mov ecx, dword [ebx + 0x88]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x68], ecx
cmp dword [eax + 0x30], ecx
jg 0x1008d045
push 0
push 0
push 0
mov edx, 0x38
mov ecx, ebx
call fcn.1003e6a0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x1008d07b
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x38
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov esi, dword [esi + 0x20]
cmp dword [eax + 0x30], ecx
jg 0x1008d0a5
push esi
push 0
push edx
mov edx, 0xf
mov ecx, ebx
call fcn.1003e6a0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x1008d0d7
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0xf
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x88]
cmp dword [eax + 0x30], esi
jg 0x1008d0fd
push 0
push 0
push edx
mov edx, 0x10
mov ecx, ebx
call fcn.1003e6a0
add esp, 0xc
mov esi, eax
jmp 0x1008d171
lea eax, [esi + 1]
mov dword [ebx + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x10
jmp 0x1008d151
mov esi, dword [ebx + 0x88]
mov edx, dword [edx + 4]
cmp dword [eax + 0x30], esi
jg 0x1008d13b
push 0
push 0
push edx
mov edx, 0x25
mov ecx, ebx
call fcn.1003e6a0
add esp, 0xc
mov esi, eax
jmp 0x1008d171
lea eax, [esi + 1]
mov dword [ebx + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x25
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
cmp dword [esp + 0x58], 0
je 0x1008d1e7
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x48], ecx
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x64], edx
lea eax, [edx + 1]
mov dword [ecx + 0x44], eax
lea eax, [edx - 1]
test edx, eax
jne 0x1008d1b5
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx]
push 0
push eax
call fcn.100203f0
mov ecx, dword [esp + 0x50]
add esp, 8
mov edx, dword [esp + 0x64]
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x1008d1c3
mov dword [eax + edx*4], 0xffffffff
not edx
push 0x10
push edx
push dword [esp + 0x60]
mov dword [esp + 0x70], edx
push dword [esp + 0x28]
call fcn.1005a510
mov eax, dword [esp + 0x50]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x13]
test al, al
jne 0x1008d1fa
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x1008d209
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x15c]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
push dword [eax + 4]
call fcn.10067320
mov ecx, dword [ebx + 0xc]
add esp, 0x18
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x30], edx
jg 0x1008d25f
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push 0
push edx
push eax
mov edx, 0x7e
call fcn.1003e6a0
add esp, 0xc
jmp 0x1008d295
lea eax, [edx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x58]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x1008d2bd
mov eax, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x58], 0
mov edx, ecx
je 0x1008d2f6
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x14], eax
mov eax, ecx
cmp dword [esp + 0x14], 0
je 0x1008d2fa
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
lea eax, [eax*4 + 4]
sub edx, eax
mov dword [edx], ecx
mov edx, dword [ebx + 0x88]
mov eax, edx
jmp 0x1008d2fa
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
test byte [ecx + 0x30], 0x10
je 0x1008d3b6
lea ecx, [eax - 1]
mov eax, dword [esp + 0x68]
test eax, eax
cmovns ecx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
je 0x1008d323
mov ecx, 0x102c70c4
jmp 0x1008d32c
mov eax, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov edx, esi
add eax, edi
mov edi, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
push 1
push dword [edi + 0x28]
push dword [eax + 4]
call fcn.1008c820
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov ecx, dword [ebx + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1008d37e
push 0
push esi
push 0
mov edx, 0xd
mov ecx, ebx
call fcn.1003e6a0
add esp, 0xc
and dword [edi + 0x30], 0xffffffef
jmp 0x1008d413
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [edi + 0x30], 0xffffffef
jmp 0x1008d413
mov eax, dword [esp + 0x54]
lea edi, [esi + 1]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x30], edx
jg 0x1008d3e1
push 0
push edi
push ecx
mov edx, 7
mov ecx, ebx
call fcn.1003e6a0
add esp, 0xc
jmp 0x1008d413
lea eax, [edx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x58]
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x88]
test edx, edx
jle 0x1008d433
mov eax, dword [ebx + 0x58]
lea ecx, [edx + edx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
je 0x1008d442
mov eax, 0x102c70c4
jmp 0x1008d453
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x1008d49c
mov al, byte [edi + 0x13]
mov byte [esp + 0x13], al
cmp al, 8
jae 0x1008d49c
movzx esi, byte [edi + 0x19]
lea eax, [edi + 0x94]
xor ecx, ecx
test esi, esi
je 0x1008d48d
nop dword [eax]
cmp dword [eax + 0xc], edx
je 0x1008d4bb
inc ecx
add eax, 0x14
cmp ecx, esi
jl 0x1008d480
movzx eax, byte [esp + 0x13]
mov dword [edi + eax*4 + 0x15c], edx
inc byte [edi + 0x13]
mov ecx, edi
call fcn.10058550
mov eax, dword [ebx]
mov edx, dword [ebx + 0x88]
cmp byte [eax + 0x45], 0
je 0x1008d4c1
mov eax, 0x102c70c4
mov dword [eax + 8], edx
jmp 0x1008d4e0
mov byte [eax + 6], 1
jmp 0x1008d49c
mov ecx, dword [esp + 0x6c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x1008d4e0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1008d4f1
mov ecx, dword [edi]
mov edx, eax
call fcn.100547e0
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret