Function at 0x10139100
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov esi, esp
mov dword [esi + 0x238], ebp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
lea eax, [esi + 0x240]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10140100
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov edi, 0x190
lea ebx, [esi + 0xa8]
push edi
push 0xff
push ebx
call fcn.10208980
add esp, 0xc
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], fcn.1002a710
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
add edi, ebx
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
cmp byte [ebp + 8], 0
je 0x101392b1
mov dword [esi + 0x248], 1
mov ecx, dword [ebp + 0xc]
push 0x102b4a34
call fcn.1013c896
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x28]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x1c]
cmp byte [esi + 0x33], 0
jns 0x10139203
push dword [esi + 0x28]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x28], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x18]
cmp byte [esi + 0x43], 0
jns 0x1013922f
push dword [esi + 0x38]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x38], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
mov word [esi + 0x58], ax
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [esi + 0x5a], ax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x88], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x80], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x14]
cmp byte [esi + 0x23], 0
jns 0x10139292
push dword [esi + 0x18]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x20], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x18], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0x60], eax
jmp 0x101393a9
mov dword [esi + 0x248], 1
mov ecx, dword [ebp + 0xc]
push 0x102b4a2c
call fcn.1013c896
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x28]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x1c]
cmp byte [esi + 0x33], 0
jns 0x10139300
push dword [esi + 0x28]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x28], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x18]
cmp byte [esi + 0x43], 0
jns 0x1013932c
push dword [esi + 0x38]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x38], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
mov word [esi + 0x58], ax
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [esi + 0x5a], ax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x88], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x80], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x14]
cmp byte [esi + 0x23], 0
jns 0x1013938f
push dword [esi + 0x18]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x20], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x18], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0x60], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
shr edx, 9
and edx, 1
mov dword [esi + 0xa4], edx
lea eax, [esi + 0xa8]
mov dword [esi + 0x90], eax
xor ecx, ecx
xor edi, edi
mov dword [esi + 0xc], ecx
cmp edi, 3
ja 0x10139cb8
mov dword [esi + 0x14], edi
mov dword [esi + 0x248], 1
mov ecx, dword [esi + 4]
call fcn.1013ffde
mov edx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10139427
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139409
movzx eax, word [eax]
jmp 0x10139415
mov eax, dword [ecx]
mov byte [esi], dl
call dword [eax + 0x20]
mov dl, byte [esi]
mov ecx, dword [esi + 8]
cmp ax, 0xffff
je 0x10139427
test dl, dl
mov edi, dword [esi + 0x14]
jne 0x10139434
jmp 0x10139cbb
xor ecx, ecx
test dl, dl
mov edi, dword [esi + 0x14]
jne 0x10139cbb
movsx eax, byte [esi + edi + 0x94]
cmp eax, 4
mov dword [esi + 8], ecx
ja case.default.0x10139448
jmp dword [eax*4 + 0x1026350c]
cmp edi, 3
jne 0x10139798
jmp 0x10139835
cmp edi, 3
je case.default.0x10139448
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1013973b
movzx eax, word [eax]
jmp 0x10139740
cmp dword [esi + 0xc], 0
jne 0x101396b8
cmp edi, 2
jb 0x101396b8
cmp dword [esi + 0x98], 0xffffff
seta al
cmp edi, 2
sete cl
and cl, al
or cl, byte [esi + 0xa4]
cmp cl, 1
jne 0x10139720
mov cl, byte [esi + 0x23]
test cl, cl
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, eax
jmp 0x101396ce
movzx ecx, byte [esi + 0x43]
mov eax, ecx
test cl, cl
jns 0x101394d6
mov eax, dword [esi + 0x3c]
movzx edx, byte [esi + 0x33]
mov ebx, edx
test dl, dl
jns 0x101394e3
mov ebx, dword [esi + 0x2c]
mov edi, eax
add edi, ebx
je 0x10139835
test eax, eax
je 0x1013976e
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
test ebx, ebx
je 0x10139b35
cmp edi, eax
je 0x10139b45
mov dword [esi + 0x10], eax
movzx eax, word [edi]
mov word [esi], ax
jmp 0x10139b60
mov dword [esi], 0
mov ecx, dword [esi + 4]
call fcn.1013ffde
mov edx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1013955f
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139542
movzx eax, word [eax]
jmp 0x10139550
mov eax, dword [ecx]
mov byte [esi + 0x10], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0x10]
mov ecx, dword [esi + 8]
cmp ax, 0xffff
je 0x1013955f
test dl, dl
jne 0x10139569
jmp 0x1013964b
xor ecx, ecx
test dl, dl
jne 0x1013964b
mov dword [esi + 8], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1013957e
movzx edx, word [eax]
jmp 0x10139585
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov word [esi + 0x10], dx
movzx edx, dx
push edx
push 4
call dword [eax + 0xc]
test al, al
je 0x101395ca
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x28]
jne 0x101395b9
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 0x28]
push eax
call fcn.1013a300
add esp, 4
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
lea ecx, [eax + 2]
mov dword [edx], ecx
movzx ecx, word [esi + 0x10]
mov word [eax], cx
mov ecx, dword [esi]
inc ecx
jmp 0x10139627
movzx eax, byte [esi + 0x8b]
test al, al
jns 0x101395db
mov eax, dword [esi + 0x84]
test eax, eax
mov ecx, dword [esi + 8]
mov edx, dword [esi]
je 0x1013964b
test edx, edx
je 0x1013964b
movzx eax, word [esi + 0x10]
cmp ax, word [esi + 0x5a]
jne 0x1013964b
mov ecx, dword [esi + 0x90]
cmp ecx, dword [esi + 0x64]
jne 0x10139614
lea ecx, [esi + 0x68]
lea edx, [esi + 0x50]
lea eax, [esi + 0x64]
push eax
call fcn.10138c70
add esp, 4
mov ecx, dword [esi + 0x50]
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [esi + 0x50], eax
mov dword [ecx], edx
xor ecx, ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x90], eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139641
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x10139524
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x10139524
mov dword [esi + 8], ecx
mov eax, dword [esi + 0x54]
cmp dword [esi + 0x68], eax
je 0x10139682
mov edx, dword [esi]
test edx, edx
je 0x10139682
cmp eax, dword [esi + 0x64]
jne 0x10139678
lea ecx, [esi + 0x68]
lea edx, [esi + 0x50]
lea eax, [esi + 0x64]
push eax
call fcn.10138c70
add esp, 4
mov eax, dword [esi + 0x50]
mov edx, dword [esi]
mov ecx, eax
add eax, 4
mov dword [esi + 0x50], eax
mov dword [ecx], edx
mov dword [esi + 0x54], eax
cmp dword [esi + 0x60], 0
jle 0x10139988
mov ecx, dword [esi + 4]
call fcn.1013ffde
mov ebx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10139727
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139840
movzx eax, word [eax]
jmp 0x1013984c
mov cl, byte [esi + 0x23]
test cl, cl
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, eax
test edi, edi
je 0x10139a51
lea edx, [esi + 0x94]
cmp byte [edi + edx - 1], 1
ja 0x10139a51
test cl, cl
jns 0x101396ea
mov edx, dword [esi + 0x1c]
mov edi, eax
jmp 0x101396f0
movzx edx, cl
lea edi, [esi + 0x18]
lea edx, [edi + edx*2]
cmp ebx, edx
mov dword [esi], ebx
je 0x101399b2
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
mov ebx, dword [esi]
test al, al
je 0x101399ac
add ebx, 2
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
jmp 0x101396df
xor ecx, ecx
jmp 0x10139c0e
mov dword [esi + 8], 0
test bl, bl
je 0x10139866
jmp 0x10139dbd
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139787
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x1013978c
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139b97
movzx eax, word [eax]
jmp 0x10139b9f
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x70]
push eax
call fcn.10141bca
mov ecx, dword [esi + 4]
call fcn.1013ffde
mov edx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x101397ce
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x101397b6
movzx eax, word [eax]
jmp 0x101397c2
mov eax, dword [ecx]
mov byte [esi], dl
call dword [eax + 0x20]
mov dl, byte [esi]
mov ecx, dword [esi + 8]
cmp ax, 0xffff
je 0x101397ce
test dl, dl
jne 0x101397d4
jmp 0x10139835
xor ecx, ecx
test dl, dl
jne 0x1013982e
mov dword [esi + 8], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x101397e9
movzx eax, word [eax]
jmp 0x101397ee
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x10139835
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139818
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x1013981d
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x70]
push eax
call fcn.10141bca
jmp 0x10139798
mov dword [esi + 8], 0
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
jmp 0x10139c0e
mov eax, dword [ecx]
mov byte [esi], bl
call dword [eax + 0x20]
mov bl, byte [esi]
mov ecx, dword [esi + 8]
cmp ax, 0xffff
sete al
mov edx, 0
cmove ecx, edx
mov dword [esi + 8], ecx
cmp bl, al
je 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139878
movzx eax, word [eax]
jmp 0x1013987d
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp ax, word [esi + 0x58]
jne 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1013989e
add ecx, 0xc
add eax, 2
mov dword [ecx], eax
jmp 0x101398a3
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [esi + 0x60], 0
jle 0x10139988
mov ecx, dword [esi + 4]
call fcn.1013ffde
mov edx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x101398cb
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x101398db
movzx eax, word [eax]
jmp 0x101398e4
mov dword [esi + 8], 0
test dl, dl
je 0x101398fd
jmp 0x10139dbd
mov eax, dword [ecx]
mov byte [esi], dl
call dword [eax + 0x20]
mov dl, byte [esi]
xor ecx, ecx
cmp ax, 0xffff
sete al
je 0x101398f2
mov ecx, dword [esi + 8]
mov dword [esi + 8], ecx
cmp dl, al
je 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1013990f
movzx eax, word [eax]
jmp 0x10139914
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 4
call dword [edx + 0xc]
test al, al
je 0x10139dbd
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x28]
jne 0x10139946
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
lea eax, [ebp + 0x28]
push eax
call fcn.1013a300
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139958
movzx eax, word [eax]
jmp 0x1013995d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [ebp + 0x24]
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov dword [edi], edx
mov word [ecx], ax
dec dword [esi + 0x60]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x10139894
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x101398a3
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x90], ecx
mov ecx, dword [ebp + 0x20]
cmp eax, dword [ecx]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
jne 0x10139c0e
jmp 0x10139dbd
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
test cl, cl
lea edx, [esi + 0x18]
cmovs edx, eax
mov dword [esi + 0x8c], edx
sub ebx, edx
sar ebx, 1
mov ch, byte [esi + 0x7b]
test ch, ch
mov edx, dword [esi + 0x74]
mov dword [esi + 0x10], edx
movzx edx, ch
mov edi, edx
mov dword [esi + 0xa0], edx
cmovs edx, dword [esi + 0x10]
cmp ebx, edx
jbe 0x101399ea
mov ebx, dword [esi + 0x8c]
jmp 0x10139a51
test ch, ch
mov dword [esi + 0x9c], edx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x5c], edx
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0x5c]
lea edx, [edx + edi*2]
mov dword [esi + 0x10], edx
mov edi, dword [esi + 0xa0]
lea edx, [esi + edi*2 + 0x70]
cmovs edx, dword [esi + 0x10]
mov dword [esi + 0x10], edx
lea edi, [esi + 0x70]
mov edx, dword [esi + 0x5c]
cmovns edx, edi
mov dword [esi + 0x5c], edx
mov edx, dword [esi + 0x5c]
mov edi, dword [esi + 0x9c]
lea edx, [edx + edi*2]
add ebx, ebx
sub edx, ebx
cmp edx, dword [esi + 0x10]
je 0x10139a4f
mov ebx, dword [esi + 0x8c]
movzx edi, word [edx]
cmp di, word [ebx]
jne 0x101399e2
add edx, 2
add ebx, 2
cmp edx, dword [esi + 0x10]
jne 0x10139a3c
mov ebx, dword [esi]
test cl, cl
jns 0x10139a5a
mov ecx, dword [esi + 0x1c]
jmp 0x10139a60
movzx ecx, cl
lea eax, [esi + 0x18]
lea eax, [eax + ecx*2]
cmp ebx, eax
je 0x10139b03
mov dword [esi + 0x248], 1
mov ecx, dword [esi + 4]
mov dword [esi], ebx
call fcn.1013ffde
mov ebx, dword [esi]
mov edx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10139ab0
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139a97
movzx eax, word [eax]
jmp 0x10139aa4
mov eax, dword [ecx]
mov byte [esi + 0x10], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0x10]
mov ebx, dword [esi]
cmp ax, 0xffff
je 0x10139ab0
test dl, dl
jne 0x10139abb
jmp 0x10139b03
mov dword [esi + 8], 0
test dl, dl
jne 0x10139b03
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139acd
movzx eax, word [eax]
jmp 0x10139ad4
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
cmp ax, word [ebx]
jne 0x10139b03
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139aee
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x10139af5
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi]
add ebx, 2
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
jmp 0x10139a51
bt dword [ebp + 0x10], 9
mov edi, dword [esi + 0x14]
jae case.default.0x10139448
movzx eax, byte [esi + 0x23]
lea ecx, [esi + 0x18]
test al, al
jns 0x10139b22
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea eax, [ecx + eax*2]
cmp ebx, eax
mov ecx, dword [esi + 0xc]
je 0x10139c0e
jmp 0x10139dbd
cmp edi, eax
je 0x10139bcd
movzx eax, word [edi]
jmp 0x10139bd7
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov word [esi], ax
mov cl, byte [esi + 0x43]
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
lea ebx, [esi + 0x38]
test cl, cl
jns 0x10139b6a
mov ebx, dword [esi + 0x38]
movzx eax, word [esi]
cmp ax, word [ebx]
jne 0x10139b86
cmp edi, dword [esi + 0x10]
je 0x10139c14
add edi, 2
mov dword [edx + 0xc], edi
jmp 0x10139c98
cmp edi, dword [esi + 0x10]
je 0x10139c1d
movzx eax, word [edi]
jmp 0x10139c24
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x10139ba9
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
mov edi, dword [esi + 0x14]
jne case.default.0x10139448
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139c66
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x10139c6e
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov cl, byte [esi + 0x43]
lea edx, [esi + 0x38]
test cl, cl
jns 0x10139be1
mov edx, dword [esi + 0x38]
cmp ax, word [edx]
mov edi, dword [esi + 0x14]
jne 0x10139c05
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 0x10]
je 0x10139c8e
add edx, 2
mov dword [eax + 0xc], edx
jmp 0x10139c98
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
mov ecx, dword [esi + 0xc]
inc edi
jmp 0x101393d2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x24]
jmp 0x10139c95
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x10139c31
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
jne 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139c4f
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x10139c57
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
test dl, dl
js 0x10139c78
movzx eax, dl
jmp 0x10139c80
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
test dl, dl
jns 0x10139c7d
mov eax, dword [esi + 0x2c]
jmp 0x10139c80
movzx eax, dl
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
cmp eax, 1
lea eax, [esi + 0x28]
jmp 0x10139cb0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
mov cl, byte [esi + 0x43]
test cl, cl
jns 0x10139ca1
mov eax, dword [esi + 0x3c]
jmp 0x10139ca4
movzx eax, cl
mov edi, dword [esi + 0x14]
cmp eax, 1
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x38]
cmova ecx, eax
jmp 0x10139c0e
mov ecx, dword [esi + 8]
mov dword [esi + 8], ecx
cmp dword [esi + 0xc], 0
je 0x10139d93
xor edx, edx
inc edx
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x10139cd9
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x10139d93
mov dword [esi + 0x248], 1
mov ecx, dword [esi + 4]
mov dword [esi], edx
call fcn.1013ffde
mov edx, dword [esi]
mov ebx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10139d0d
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139d1d
movzx eax, word [eax]
jmp 0x10139d2a
mov dword [esi + 8], 0
test bl, bl
je 0x10139d3f
jmp 0x10139dbd
mov eax, dword [ecx]
mov byte [esi + 0x10], bl
call dword [eax + 0x20]
mov bl, byte [esi + 0x10]
mov edx, dword [esi]
xor ecx, ecx
cmp ax, 0xffff
sete al
je 0x10139d38
mov ecx, dword [esi + 8]
mov dword [esi + 8], ecx
cmp bl, al
je 0x10139dbd
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139d51
movzx eax, word [eax]
jmp 0x10139d58
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0xb], 0
jns 0x10139d66
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
cmp ax, word [ecx + edx*2]
jne 0x10139dbd
inc edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x10139d85
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x10139ccb
mov eax, dword [ecx]
mov dword [esi], edx
call dword [eax + 0x24]
mov edx, dword [esi]
jmp 0x10139ccb
mov edx, dword [esi + 0x68]
mov bl, 1
mov eax, dword [esi + 0x54]
cmp edx, eax
je 0x10139dc5
lea edi, [esi + 0x44]
mov dword [edi], 0
lea ecx, [esi + 0x80]
push edi
push eax
call fcn.10138cf2
add esp, 8
cmp dword [edi], 0
je 0x10139dc5
mov eax, dword [ebp + 0x14]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x7b], 0
jns 0x10139dd6
push dword [esi + 0x70]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x10139de7
push dword [esi + 0x28]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x10139df8
push dword [esi + 0x38]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x10139e09
push dword [esi + 0x18]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x8b], 0
jns 0x10139e20
push dword [esi + 0x80]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10139e3e
mov dword [esi + 0x248], 0
push eax
mov dword [esi + 4], ebx
call dword [esi + 0x6c]
mov ebx, dword [esi + 4]
add esp, 4
mov eax, dword [esi + 0x240]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret