Function at 0x1003e280
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10180aae
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x101cd7b4]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esp + 0x280]
mov dword [esp + 0x30], ebx
cmp dword [esi + 0x150], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
je 0x1003e589
mov ecx, dword [esi + 0x148]
cmp ecx, ebx
je 0x1003e589
mov edx, dword [ecx]
mov eax, dword [edx + 0xfc]
call eax
mov ecx, dword [esi + 0x150]
mov byte [esp + 0x284], al
call fcn.10134576
mov ecx, dword [esi + 0x150]
mov dword [esp + 0xa0], eax
call fcn.1013545e
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
lea edi, [esi + 8]
mov dword [esp + 0x26c], ebx
jne 0x1003e358
mov dword [esp + 0x9c], ebx
jmp 0x1003e375
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x9c], eax
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x1003e382
call fcn.10158fad
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
mov dword [esp + 0x2c], ebx
jbe 0x1003e393
call fcn.10158fad
mov dword [esp + 0x28], 0
jmp 0x1003e3a0
cmp edi, edi
je 0x1003e3a9
call fcn.10158fad
cmp ebp, ebx
je 0x1003e4b3
cmp ebp, dword [edi + 8]
jb 0x1003e3bb
call fcn.10158fad
cmp dword [ebp + 8], 0
je 0x1003e3fa
cmp ebp, dword [edi + 8]
jb 0x1003e3cb
call fcn.10158fad
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x1cc]
push eax
call edx
or dword [esp + 0x30], 1
push eax
lea ecx, [esi + 0x88]
mov byte [esp + 0x270], 1
call fcn.100f5bc7
test al, al
je 0x1003e43a
cmp ebp, dword [edi + 8]
jb 0x1003e404
call fcn.10158fad
cmp dword [ebp + 8], 0
je 0x1003e43a
cmp ebp, dword [edi + 8]
jb 0x1003e414
call fcn.10158fad
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x50], esp
push ebp
mov ecx, ebx
call fcn.100d3540
mov ecx, esi
mov dword [ebx], 0x1019a834
call fcn.100374a0
test al, al
je 0x1003e43a
xor bl, bl
jmp 0x1003e43c
mov bl, 1
test byte [esp + 0x30], 1
mov dword [esp + 0x26c], 0
je 0x1003e45f
and dword [esp + 0x30], 0xfffffffe
lea ecx, [esp + 0x1cc]
call fcn.10019f90
test bl, bl
je 0x1003e498
cmp ebp, dword [edi + 8]
jb 0x1003e46d
call fcn.10158fad
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.1003c490
add dword [esp + 0x38], 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x90]
call fcn.10039720
cmp ebp, dword [edi + 8]
jb 0x1003e4a2
call fcn.10158fad
mov ebx, dword [esp + 0x2c]
add ebp, 0x18
add dword [esp + 0x28], 1
jmp 0x1003e3a0
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.10134df8
cmp byte [esp + 0x284], 0
mov byte [esp + 0x17], al
jne 0x1003e4f7
cmp dword [esp + 0xa0], 4
je 0x1003e4f7
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101345dc
mov ebp, eax
mov dword [esp + 0x30], ebp
jmp 0x1003e50f
mov edx, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push edx
call fcn.10134db8
mov ebp, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.10134db8
cmp ebp, eax
mov ecx, dword [esi + 0x150]
jae 0x1003e539
call fcn.1013545e
cmp eax, 1
je 0x1003e54f
push 1
jmp 0x1003e544
call fcn.1013545e
test eax, eax
je 0x1003e54f
push 0
mov ecx, dword [esi + 0x150]
call fcn.10135422
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101350b8
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x88], ebx
call fcn.10039260
test ebp, ebp
jne 0x1003e590
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1003e589
push eax
call fcn.10158c57
add esp, 4
xor al, al
jmp 0x1003fa99
lea ebp, [esi + 0x88]
mov ecx, ebp
call fcn.100f54fa
cmp ebx, eax
ja 0x1003e644
lea ecx, [esi + 0xe0]
call fcn.100f3a11
cmp eax, 2
jb 0x1003e644
mov edx, dword [esp + 0x34]
xor eax, eax
mov byte [edx], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov ecx, dword [esi + 0x157c]
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esi + 0x150]
mov byte [esp + 0x278], 2
call fcn.10134e38
mov ecx, ebp
mov ebx, eax
call fcn.100f54a2
mov ecx, eax
cmp ebx, ecx
jbe 0x1003e60d
test ecx, ecx
jbe 0x1003e60d
lea eax, [ecx + ebx - 1]
xor edx, edx
div ecx
push eax
jmp 0x1003e60f
push 1
mov ecx, ebp
call fcn.100f5607
mov ecx, ebp
call fcn.100f54fa
cmp eax, 1
jne 0x1003e62b
push 2
mov ecx, ebp
call fcn.100f5607
mov eax, dword [esp + 0x6c]
test eax, eax
mov byte [esp + 0x26c], 0
je 0x1003e644
push eax
call fcn.10158c57
add esp, 4
mov ecx, ebp
call fcn.101185c8
cmp byte [esp + 0x17], 0
mov ebx, dword [esp + 0x38]
je 0x1003ea97
cmp ebx, dword [esp + 0x9c]
jne 0x1003ea97
test ebx, ebx
jle 0x1003fa78
cmp byte [esi + 0x28e], 1
je 0x1003ea97
mov ecx, ebp
call fcn.100f54fa
xor ebp, ebp
cmp eax, ebp
je 0x1003eaff
cmp ebx, eax
jbe 0x1003e697
mov ebx, eax
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x30]
xor edx, edx
lea eax, [ecx + ebx - 1]
div ebx
cmp eax, 0xa
mov dword [esp + 0x48], eax
jge 0x1003e6b4
mov dword [esp + 0x48], 0xa
cmp ecx, ebp
mov dword [esp + 0x28], ebp
jbe 0x1003fa78
cmp ebp, dword [esp + 0x38]
je 0x1003fa78
push ebp
mov ecx, edi
call fcn.100a6250
mov edx, dword [esp + 0x28]
push ebp
mov ecx, edi
mov dword [eax + 0x10], edx
call fcn.100a6250
mov ecx, dword [esp + 0x30]
lea ebx, [esi + 0x1594]
push ebx
mov dword [eax + 0x14], ecx
call dword [0x10199070]
mov dl, byte [esi + 0x15ac]
push ebx
mov byte [esp + 0x40], dl
call dword [0x10199074]
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1d0]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f6173
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 3
call fcn.1003ace0
push ebp
mov ecx, edi
call fcn.100a6250
push ebp
mov ecx, edi
call fcn.100a6250
cmp dword [esp + 0xd4], 0x10
jb 0x1003e764
mov eax, dword [esp + 0xc0]
push eax
call fcn.10158c57
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x1e0], ebx
jbe 0x1003ea86
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
lea eax, [esi + 0x15c0]
mov dword [esp + 0x44], eax
add eax, 4
push eax
mov dword [esp + 0x44], 0x10199608
mov dword [esp + 0x38], eax
call dword [0x10199070]
cmp dword [esi + 0x20], ebx
mov byte [esp + 0x26c], 5
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x1003e804
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
lea ebx, [esi + 0x18]
mov dword [esp + 0xb8], eax
jne 0x1003e7da
call fcn.10158fad
mov ecx, dword [esp + 0xb8]
add ecx, 8
push ecx
lea ecx, [esp + 0x50]
call fcn.100393a0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
push ebx
lea edx, [esp + 0xf0]
push edx
mov ecx, ebx
call fcn.10038540
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x270], 4
call dword [0x10199074]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x40], 0x101995f4
je 0x1003e935
xor ebx, ebx
push ebx
push ebp
mov ecx, edi
call fcn.100a6250
mov ecx, dword [eax + 0x10]
mov edx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
push edx
call fcn.10134a75
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov ebx, dword [esi]
push ebp
mov ecx, edi
mov byte [esp + 0x270], 6
add ebx, 4
call fcn.100a6250
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x1d0]
push ecx
mov ecx, esi
call fcn.10036670
mov edx, dword [esi + 0x1578]
push eax
mov eax, dword [esi + 0x1574]
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
push 0
push ebp
mov ecx, edi
call fcn.100a6250
mov edx, dword [eax + 0x14]
push edx
push ebp
mov ecx, edi
call fcn.100a6250
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x290]
push eax
push ecx
lea edx, [esp + 0x1ec]
push edx
mov edx, dword [ebx]
lea eax, [esp + 0xc8]
push eax
mov ecx, esi
call edx
mov ebx, eax
push ebp
mov ecx, edi
mov byte [esp + 0x270], 7
call fcn.100a6250
push ebx
mov ecx, eax
call fcn.100634a0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x26c], 6
mov dword [esp + 0xa4], 0x1019a834
mov dword [esp + 0xa8], 0x10199c24
call fcn.1001fec0
lea ecx, [esp + 0x68]
mov byte [esp + 0x26c], 4
call fcn.1001ed40
push ebp
mov ecx, edi
call fcn.100a6250
push ebp
mov ecx, edi
call fcn.100a6250
jmp 0x1003e9e0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x157c]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x150]
call fcn.10134a75
mov edx, dword [esp + 0x5c]
mov ebx, dword [esi]
push edx
lea eax, [esp + 0x1d0]
push eax
mov ecx, esi
add ebx, 4
call fcn.10036670
mov ecx, dword [esi + 0x1578]
mov edx, dword [esi + 0x1574]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x288]
push 0
push ecx
push edx
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x1ec]
push ecx
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
call eax
mov ebx, eax
push ebp
mov ecx, edi
mov byte [esp + 0x270], 8
call fcn.100a6250
push ebx
mov ecx, eax
call fcn.100634a0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x26c], 4
mov dword [esp + 0x78], 0x1019a834
mov dword [esp + 0x7c], 0x10199c24
call fcn.1001fec0
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f56cf
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], 0
mov byte [esp + 0x100], 0
call fcn.10005490
cmp dword [esp + 0x108], 0x10
jb 0x1003ea43
mov eax, dword [esp + 0xf4]
push eax
call fcn.10158c57
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1003ea54
push eax
call fcn.10158c57
add esp, 4
mov ebx, dword [esp + 0x28]
add ebx, dword [esp + 0x48]
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x28], ebx
add ebp, 1
mov byte [esp + 0x26c], 0
call fcn.10019f90
cmp ebx, dword [esp + 0x30]
jb 0x1003e6c0
jmp 0x1003fa78
lea ecx, [esp + 0x1cc]
call fcn.10019f90
jmp 0x1003fa78
test ebx, ebx
jle 0x1003fa78
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp byte [esp + 0x284], al
mov byte [esp + 0x26c], 9
jne 0x1003eb12
cmp dword [esp + 0xa0], 4
je 0x1003eb12
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101345dc
push eax
mov eax, dword [esi + 0x157c]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [esi + 0x150]
call fcn.10134e38
test eax, eax
jne 0x1003eb22
lea ecx, [esp + 0x18]
call fcn.1001ed40
lea ecx, [esp + 0x8c]
call fcn.1001ed40
mov al, 1
jmp 0x1003fa99
mov edx, dword [esi + 0x157c]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push edx
jmp 0x1003eae7
mov ecx, ebp
call fcn.100f54fa
lea ecx, [esi + 0xe0]
call fcn.100f3a11
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.101350b8
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x1003ec88
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x1003ec88
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx]
test eax, eax
mov dword [esp + 0x28], eax
jbe 0x1003ebbf
sub eax, 1
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x1003eba8
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003ebb1
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea ebp, [eax + ecx]
lea ecx, [esp + 0x28]
push ecx
jmp 0x1003ebee
test ecx, ecx
je 0x1003ebd9
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003ebe2
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
lea ebp, [edx + ecx]
push eax
mov ecx, esi
call fcn.10039440
mov byte [ebp + 8], al
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003ec1c
mov ebp, dword [esp + 0x20]
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003ec29
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003ec45
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003ec52
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003ec6e
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003ec7b
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ebx, 1
add dword [esp + 0x2c], 0xc
jmp 0x1003eb54
cmp ecx, ebp
mov dword [esp + 0x3c], ebp
jbe 0x1003ec9d
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov ebx, ecx
jbe 0x1003eca8
call fcn.10158fad
mov ebp, dword [esp + 0x3c]
mov ecx, ebp
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push ebp
push ebx
call fcn.10036e20
xor eax, eax
add esp, 0xc
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x34]
cmp byte [edx], al
mov byte [esp + 0x26c], 0xa
je 0x1003eda7
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
add ecx, 1
shr ecx, 1
test eax, eax
je 0x1003ed24
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x1003ed24
lea ecx, [eax + eax]
cmp ecx, 2
jae 0x1003ed2e
mov ecx, 2
push ecx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esi + 0xe0]
call fcn.100f51ad
test eax, eax
jbe 0x1003eda7
push 0
lea ecx, [esp + 0x7c]
call fcn.10034e00
lea ebp, [esi + 0x88]
push eax
mov ecx, ebp
call fcn.100f5c4a
cmp eax, dword [esi + 0x1cc]
jae 0x1003eda7
cmp eax, 2
jae 0x1003eda7
add eax, 1
push eax
push 0
lea ecx, [esp + 0x80]
call fcn.10034e00
push eax
mov ecx, ebp
call fcn.100f5860
push 0
lea ecx, [esp + 0x7c]
call fcn.10034e00
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.10005fb0
mov ecx, 0x101cee8c
call fcn.10004cc0
cmp dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
jle 0x1003fa5e
mov ebx, dword [0x10199070]
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x1003fa5e
mov eax, dword [esp + 0x94]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jae 0x1003fa5e
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1003ee05
mov ecx, dword [esp + 0x20]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x1003ee0e
call fcn.10158fad
mov ebp, dword [esp + 0x1c]
mov edx, dword [ebp]
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x28], edx
call fcn.10019f00
mov eax, dword [esp + 0x7c]
test eax, eax
mov byte [esp + 0x26c], 0xb
je 0x1003eeb9
mov ecx, dword [esp + 0x80]
sub ecx, eax
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003eeb9
lea ebp, [esi + 0x1594]
push ebp
call ebx
mov cl, byte [esi + 0x15ac]
push ebp
mov byte [esp + 0x8c], cl
call dword [0x10199074]
mov edx, dword [esp + 0x88]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f5f02
push eax
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 0xc
call fcn.1003ae70
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019f90
cmp dword [esp + 0x1e0], 0
jne 0x1003ef8f
lea ebp, [esi + 0x1594]
push ebp
call ebx
mov dl, byte [esi + 0x15ac]
push ebp
mov byte [esp + 0xdc], dl
call dword [0x10199074]
mov eax, dword [esp + 0xd8]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f6173
push eax
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 0xd
call fcn.1003ae70
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019f90
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.10005490
cmp dword [esp + 0x64], 0x10
jb 0x1003ef66
mov eax, dword [esp + 0x50]
push eax
call fcn.10158c57
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x1e0], ebp
jne 0x1003ef91
add dword [esp + 0x2c], 1
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x26c], 0xa
call fcn.10019f90
jmp 0x1003f983
xor ebp, ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10036a50
test al, al
je 0x1003f0ee
cmp dword [esp + 0x1e0], ebp
jbe 0x1003f0ee
cmp byte [esi + 0x1580], 0
mov ecx, dword [esp + 0x1c]
je 0x1003f0e5
cmp ecx, ebp
mov byte [esi + 0x1580], 0
je 0x1003efeb
mov ebp, dword [esp + 0x20]
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x1003eff8
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe0], eax
mov edx, ebp
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f039
call fcn.10158fad
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov ebx, ecx
je 0x1003f056
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x1003f05f
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx]
add ecx, 0xc
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f091
call fcn.10158fad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov dword [eax], ecx
mov ecx, dword [esp + 0xe4]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003f0d2
mov edx, dword [esp + 0x20]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f0db
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
xor ebp, ebp
jmp 0x1003f0f2
mov byte [esi + 0x1580], 1
jmp 0x1003f0f2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003f10e
mov edx, dword [esp + 0x20]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f117
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003f133
mov edx, dword [esp + 0x20]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f13c
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa0]
cmp ebx, 2
mov dword [esp + 0x3c], ebp
je 0x1003f151
cmp ebx, 4
jne 0x1003f158
cmp dword [esp + 0x48], 3
je 0x1003f162
cmp byte [esp + 0x284], 0
je 0x1003f17e
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.1013574b
test al, al
je 0x1003f996
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003f19a
mov edx, dword [esp + 0x20]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f1a3
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.10039bd0
mov dl, byte [esp + 0x284]
test dl, dl
jne 0x1003f1d1
cmp ebx, 4
je 0x1003f1d1
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x30]
ja 0x1003f9d6
test al, al
jne 0x1003f2a6
cmp ebx, 2
je 0x1003f1e3
cmp ebx, 4
jne 0x1003f1ee
cmp dword [esp + 0x48], 3
je 0x1003f2a6
test dl, dl
jne 0x1003f2a6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1003fa52
mov ebx, dword [esp + 0x20]
mov ecx, ebx
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x1003fa52
cmp ebp, ebx
mov eax, ebp
mov dword [esp + 0x34], eax
jbe 0x1003f23e
call fcn.10158fad
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jb 0x1003f253
call fcn.10158fad
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp ebp, ebx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edx
jbe 0x1003f279
call fcn.10158fad
push ebp
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x24]
call fcn.100363b0
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039790
jmp 0x1003f964
mov ecx, dword [esp + 0x90]
cmp ecx, ebp
je 0x1003f2c3
mov eax, dword [esp + 0x94]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x1003f2d6
call fcn.10158fad
mov ecx, dword [esp + 0x90]
mov dl, byte [esp + 0x284]
cmp ebx, 2
mov eax, dword [esp + 0x2c]
mov ebp, dword [ecx + eax*4]
je 0x1003f2e7
cmp ebx, 4
jne 0x1003f2ee
cmp dword [esp + 0x48], 3
je 0x1003f32f
test dl, dl
jne 0x1003f32f
mov eax, dword [edi + 4]
test eax, eax
je 0x1003f313
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f318
call fcn.10158fad
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x28]
lea ebx, [ebp + ebp*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov dword [ebx + ecx + 0x10], edx
jmp 0x1003f36a
mov eax, dword [edi + 4]
test eax, eax
je 0x1003f350
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f355
call fcn.10158fad
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
lea ebx, [ebp + ebp*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov dword [eax + ebx + 0x10], ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x1003f38b
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f390
call fcn.10158fad
mov eax, dword [esp + 0x30]
mov edx, dword [edi + 4]
mov dword [ebx + edx + 0x14], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1003f3bc
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f3c1
call fcn.10158fad
mov ecx, dword [edi + 4]
cmp dword [ebx + ecx + 8], 0
je 0x1003f4dc
mov eax, ecx
test eax, eax
je 0x1003f3ef
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f3f4
call fcn.10158fad
mov eax, dword [edi + 4]
add eax, ebx
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x138]
push ecx
mov ecx, eax
call edx
push eax
lea ecx, [esi + 0x88]
mov byte [esp + 0x270], 0xe
call fcn.100f5792
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019f90
mov eax, dword [edi + 4]
test eax, eax
je 0x1003f456
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f45b
call fcn.10158fad
mov eax, dword [edi + 4]
add eax, ebx
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x138]
push ecx
mov ecx, eax
call edx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x278], 0xf
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.10005490
cmp dword [esp + 0x64], 0x10
jb 0x1003f4b3
mov eax, dword [esp + 0x50]
push eax
call fcn.10158c57
add esp, 4
lea ecx, [esp + 0x138]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov byte [esp + 0x26c], 0xb
call fcn.10019f90
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x1d0]
call fcn.1003ace0
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1003f513
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f518
call fcn.10158fad
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1003f539
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003f53e
call fcn.10158fad
cmp dword [esp + 0xd4], 0x10
jb 0x1003f558
mov edx, dword [esp + 0xc0]
push edx
call fcn.10158c57
add esp, 4
cmp dword [esp + 0x1e0], ebx
jbe 0x1003fa24
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
lea eax, [esi + 0x15c0]
lea ebx, [eax + 4]
push ebx
mov dword [esp + 0xb8], 0x10199608
mov dword [esp + 0xbc], eax
mov dword [esp + 0x44], ebx
call dword [0x10199070]
cmp dword [esi + 0x20], 0
mov byte [esp + 0x26c], 0x11
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x1003f61e
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
lea ebx, [esi + 0x18]
mov dword [esp + 0xec], eax
jne 0x1003f5d3
call fcn.10158fad
mov eax, dword [esp + 0xec]
add eax, 8
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x38], eax
call fcn.1000ae10
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
push ebx
lea ecx, [esp + 0x130]
push ecx
mov ecx, ebx
call fcn.10038540
mov ebx, dword [esp + 0x40]
push ebx
mov byte [esp + 0x270], 0x10
call dword [0x10199074]
cmp byte [esp + 0x17], 0
mov dword [esp + 0xb4], 0x101995f4
mov ecx, edi
je 0x1003f7c8
push ebp
call fcn.100a6250
push 0
push 0
lea ecx, [esp + 0xb0]
mov ebx, eax
call fcn.10004090
mov eax, dword [esp + 0xac]
mov edx, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xac], edx
mov dword [ebx + 0xc], eax
mov dword [esp + 0xa4], 0x1019a834
mov dword [esp + 0xa8], 0x10199c24
call fcn.1001fec0
xor ebx, ebx
push ebx
push ebp
mov ecx, edi
call fcn.100a6250
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push edx
push eax
call fcn.10134a75
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov ebx, dword [esi]
push ebp
mov ecx, edi
mov byte [esp + 0x270], 0x12
add ebx, 4
call fcn.100a6250
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [esp + 0x1d0]
push edx
mov ecx, esi
call fcn.10036670
mov ecx, dword [esi + 0x1574]
push eax
mov eax, dword [esi + 0x1578]
push eax
push ecx
lea edx, [esp + 0x74]
push edx
push 0
push ebp
mov ecx, edi
call fcn.100a6250
mov eax, dword [eax + 0x14]
push eax
push ebp
mov ecx, edi
call fcn.100a6250
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x290]
push ecx
push edx
mov edx, dword [ebx]
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x13c]
push ecx
mov ecx, esi
call edx
mov ebx, eax
push ebp
mov ecx, edi
mov byte [esp + 0x270], 0x13
call fcn.100a6250
push ebx
mov ecx, eax
call fcn.100634a0
lea ecx, [esp + 0x11c]
mov byte [esp + 0x26c], 0x12
mov dword [esp + 0x118], 0x1019a834
mov dword [esp + 0x11c], 0x10199c24
call fcn.1001fec0
mov eax, dword [esp + 0x6c]
test eax, eax
mov byte [esp + 0x26c], 0x10
je 0x1003f7a5
push eax
call fcn.10158c57
add esp, 4
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.100a6250
push ebp
mov ecx, edi
call fcn.100a6250
jmp 0x1003f88d
push 0
push ebp
call fcn.100a6250
mov ecx, eax
call fcn.10018c80
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x157c]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x150]
call fcn.10134a75
mov edx, dword [esp + 0x5c]
mov ebx, dword [esi]
push edx
lea eax, [esp + 0x1d0]
push eax
mov ecx, esi
add ebx, 4
call fcn.10036670
mov ecx, dword [esi + 0x1578]
mov edx, dword [esi + 0x1574]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x288]
push 0
push ecx
push edx
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x1ec]
push ecx
lea edx, [esp + 0x114]
push edx
mov ecx, esi
call eax
mov ebx, eax
push ebp
mov ecx, edi
mov byte [esp + 0x270], 0x14
call fcn.100a6250
push ebx
mov ecx, eax
call fcn.100634a0
lea ecx, [esp + 0xf4]
mov byte [esp + 0x26c], 0x10
mov dword [esp + 0xf0], 0x1019a834
mov dword [esp + 0xf4], 0x10199c24
call fcn.1001fec0
xor ebx, ebx
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f56cf
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], 0
call fcn.10005490
cmp dword [esp + 0xd4], 0x10
jb 0x1003f8eb
mov eax, dword [esp + 0xc0]
push eax
call fcn.10158c57
add esp, 4
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
je 0x1003f90b
mov ecx, dword [esp + 0x20]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x1003f914
call fcn.10158fad
mov ebp, dword [esp + 0x1c]
mov byte [ebp + 8], 1
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1003f937
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
add edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
shr edx, 1
push edx
push ebx
push eax
call fcn.1013aab5
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x1003f964
push eax
call fcn.10158c57
add esp, 4
add dword [esp + 0x2c], 1
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x26c], 0xa
call fcn.10019f90
mov ebx, dword [0x10199070]
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x38]
jl 0x1003edc0
jmp 0x1003fa5e
lea ecx, [esp + 0x1cc]
call fcn.10019f90
lea ecx, [esp + 0x78]
call fcn.1003da30
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003f9bc
push eax
call fcn.10158c57
add esp, 4
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
jmp 0x1003e57e
lea ecx, [esp + 0x1cc]
call fcn.10019f90
lea ecx, [esp + 0x78]
call fcn.1003da30
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003f9fc
push eax
call fcn.10158c57
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x1003eb0b
push eax
call fcn.10158c57
add esp, 4
mov al, 1
jmp 0x1003fa99
lea edx, [esp + 0x1cc]
push edx
lea ecx, [esp + 0xc0]
call fcn.10005fb0
cmp dword [esp + 0xd4], 0x10
jb 0x1003fa52
mov eax, dword [esp + 0xc0]
push eax
call fcn.10158c57
add esp, 4
lea ecx, [esp + 0x1cc]
call fcn.10019f90
lea ecx, [esp + 0x78]
call fcn.1003da30
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003fa78
push eax
call fcn.10158c57
add esp, 4
cmp dword [esp + 0x9c], 0
mov eax, dword [esp + 0x90]
setne bl
test eax, eax
je 0x1003fa97
push eax
call fcn.10158c57
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.101593ee
add esp, 0x25c
ret 0x14