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

Disassembly:
push 0xffffffffffffffff
push 0x1018158e
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 0x1003dff9
mov ecx, dword [esi + 0x148]
cmp ecx, ebx
je 0x1003dff9
mov edx, dword [ecx]
mov eax, dword [edx + 0xfc]
call eax
mov ecx, dword [esi + 0x150]
mov byte [esp + 0x284], al
call fcn.10134757
mov ecx, dword [esi + 0x150]
mov dword [esp + 0xa0], eax
call fcn.10135656
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 0x1003ddc8
mov dword [esp + 0x9c], ebx
jmp 0x1003dde5
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 0x1003ddf2
call fcn.1015988d
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
mov dword [esp + 0x2c], ebx
jbe 0x1003de03
call fcn.1015988d
mov dword [esp + 0x28], 0
jmp 0x1003de10
cmp edi, edi
je 0x1003de19
call fcn.1015988d
cmp ebp, ebx
je 0x1003df23
cmp ebp, dword [edi + 8]
jb 0x1003de2b
call fcn.1015988d
cmp dword [ebp + 8], 0
je 0x1003de6a
cmp ebp, dword [edi + 8]
jb 0x1003de3b
call fcn.1015988d
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.100f6364
test al, al
je 0x1003deaa
cmp ebp, dword [edi + 8]
jb 0x1003de74
call fcn.1015988d
cmp dword [ebp + 8], 0
je 0x1003deaa
cmp ebp, dword [edi + 8]
jb 0x1003de84
call fcn.1015988d
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x50], esp
push ebp
mov ecx, ebx
call fcn.100364f0
mov ecx, esi
mov dword [ebx], 0x1019a348
call fcn.10037600
test al, al
je 0x1003deaa
xor bl, bl
jmp 0x1003deac
mov bl, 1
test byte [esp + 0x30], 1
mov dword [esp + 0x26c], 0
je 0x1003decf
and dword [esp + 0x30], 0xfffffffe
lea ecx, [esp + 0x1cc]
call fcn.10019ce0
test bl, bl
je 0x1003df08
cmp ebp, dword [edi + 8]
jb 0x1003dedd
call fcn.1015988d
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.1003bf60
add dword [esp + 0x38], 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x90]
call fcn.1000b950
cmp ebp, dword [edi + 8]
jb 0x1003df12
call fcn.1015988d
mov ebx, dword [esp + 0x2c]
add ebp, 0x18
add dword [esp + 0x28], 1
jmp 0x1003de10
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.10134ff0
cmp byte [esp + 0x284], 0
mov byte [esp + 0x17], al
jne 0x1003df67
cmp dword [esp + 0xa0], 4
je 0x1003df67
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101347bd
mov ebp, eax
mov dword [esp + 0x30], ebp
jmp 0x1003df7f
mov edx, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push edx
call fcn.10134fb0
mov ebp, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.10134fb0
cmp ebp, eax
mov ecx, dword [esi + 0x150]
jae 0x1003dfa9
call fcn.10135656
cmp eax, 1
je 0x1003dfbf
push 1
jmp 0x1003dfb4
call fcn.10135656
test eax, eax
je 0x1003dfbf
push 0
mov ecx, dword [esi + 0x150]
call fcn.1013561a
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101352b0
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x88], ebx
call fcn.10038ed0
test ebp, ebp
jne 0x1003e000
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1003dff9
push eax
call fcn.10159534
add esp, 4
xor al, al
jmp 0x1003f509
lea ebp, [esi + 0x88]
mov ecx, ebp
call fcn.100f5c97
cmp ebx, eax
ja 0x1003e0b4
lea ecx, [esi + 0xe0]
call fcn.100f41fe
cmp eax, 2
jb 0x1003e0b4
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.10135030
mov ecx, ebp
mov ebx, eax
call fcn.100f5c3f
mov ecx, eax
cmp ebx, ecx
jbe 0x1003e07d
test ecx, ecx
jbe 0x1003e07d
lea eax, [ecx + ebx - 1]
xor edx, edx
div ecx
push eax
jmp 0x1003e07f
push 1
mov ecx, ebp
call fcn.100f5da4
mov ecx, ebp
call fcn.100f5c97
cmp eax, 1
jne 0x1003e09b
push 2
mov ecx, ebp
call fcn.100f5da4
mov eax, dword [esp + 0x6c]
test eax, eax
mov byte [esp + 0x26c], 0
je 0x1003e0b4
push eax
call fcn.10159534
add esp, 4
mov ecx, ebp
call fcn.10141980
cmp byte [esp + 0x17], 0
mov ebx, dword [esp + 0x38]
je 0x1003e507
cmp ebx, dword [esp + 0x9c]
jne 0x1003e507
test ebx, ebx
jle 0x1003f4e8
cmp byte [esi + 0x28e], 1
je 0x1003e507
mov ecx, ebp
call fcn.100f5c97
xor ebp, ebp
cmp eax, ebp
je 0x1003e56f
cmp ebx, eax
jbe 0x1003e107
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 0x1003e124
mov dword [esp + 0x48], 0xa
cmp ecx, ebp
mov dword [esp + 0x28], ebp
jbe 0x1003f4e8
cmp ebp, dword [esp + 0x38]
je 0x1003f4e8
push ebp
mov ecx, edi
call fcn.10034dd0
mov edx, dword [esp + 0x28]
push ebp
mov ecx, edi
mov dword [eax + 0x10], edx
call fcn.10034dd0
mov ecx, dword [esp + 0x30]
lea ebx, [esi + 0x1594]
push ebx
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, byte [esi + 0x15ac]
push ebx
mov byte [esp + 0x40], dl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1d0]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f6910
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 3
call fcn.1003a770
push ebp
mov ecx, edi
call fcn.10034dd0
push ebp
mov ecx, edi
call fcn.10034dd0
cmp dword [esp + 0xd4], 0x10
jb 0x1003e1d4
mov eax, dword [esp + 0xc0]
push eax
call fcn.10159534
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x1e0], ebx
jbe 0x1003e4f6
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], 0x10199614
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], ebx
mov byte [esp + 0x26c], 5
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x1003e274
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
lea ebx, [esi + 0x18]
mov dword [esp + 0xb8], eax
jne 0x1003e24a
call fcn.1015988d
mov ecx, dword [esp + 0xb8]
add ecx, 8
push ecx
lea ecx, [esp + 0x50]
call fcn.10039010
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
push ebx
lea edx, [esp + 0xf0]
push edx
mov ecx, ebx
call fcn.10038440
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x270], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x40], 0x10199600
je 0x1003e3a5
xor ebx, ebx
push ebx
push ebp
mov ecx, edi
call fcn.10034dd0
mov ecx, dword [eax + 0x10]
mov edx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
push edx
call fcn.10134c6d
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.10034dd0
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x1d0]
push ecx
mov ecx, esi
call fcn.10036790
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.10034dd0
mov edx, dword [eax + 0x14]
push edx
push ebp
mov ecx, edi
call fcn.10034dd0
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.10034dd0
push ebx
mov ecx, eax
call fcn.10036440
lea ecx, [esp + 0xa8]
mov byte [esp + 0x26c], 6
mov dword [esp + 0xa4], 0x1019a348
mov dword [esp + 0xa8], 0x101996a4
call fcn.100a8e90
lea ecx, [esp + 0x68]
mov byte [esp + 0x26c], 4
call fcn.10004a10
push ebp
mov ecx, edi
call fcn.10034dd0
push ebp
mov ecx, edi
call fcn.10034dd0
jmp 0x1003e450
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x157c]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x150]
call fcn.10134c6d
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.10036790
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.10034dd0
push ebx
mov ecx, eax
call fcn.10036440
lea ecx, [esp + 0x7c]
mov byte [esp + 0x26c], 4
mov dword [esp + 0x78], 0x1019a348
mov dword [esp + 0x7c], 0x101996a4
call fcn.100a8e90
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f5e6c
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.10005470
cmp dword [esp + 0x108], 0x10
jb 0x1003e4b3
mov eax, dword [esp + 0xf4]
push eax
call fcn.10159534
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1003e4c4
push eax
call fcn.10159534
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.10019ce0
cmp ebx, dword [esp + 0x30]
jb 0x1003e130
jmp 0x1003f4e8
lea ecx, [esp + 0x1cc]
call fcn.10019ce0
jmp 0x1003f4e8
test ebx, ebx
jle 0x1003f4e8
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 0x1003e582
cmp dword [esp + 0xa0], 4
je 0x1003e582
mov ecx, dword [esi + 0x157c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.101347bd
push eax
mov eax, dword [esi + 0x157c]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [esi + 0x150]
call fcn.10135030
test eax, eax
jne 0x1003e592
lea ecx, [esp + 0x18]
call fcn.10004a10
lea ecx, [esp + 0x8c]
call fcn.10004a10
mov al, 1
jmp 0x1003f509
mov edx, dword [esi + 0x157c]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push edx
jmp 0x1003e557
mov ecx, ebp
call fcn.100f5c97
lea ecx, [esi + 0xe0]
call fcn.100f41fe
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push eax
call fcn.101352b0
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x1003e6f8
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 0x1003e6f8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx]
test eax, eax
mov dword [esp + 0x28], eax
jbe 0x1003e62f
sub eax, 1
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x1003e618
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003e621
call fcn.1015988d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea ebp, [eax + ecx]
lea ecx, [esp + 0x28]
push ecx
jmp 0x1003e65e
test ecx, ecx
je 0x1003e649
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003e652
call fcn.1015988d
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.100390b0
mov byte [ebp + 8], al
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003e68c
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 0x1003e699
call fcn.1015988d
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003e6b5
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 0x1003e6c2
call fcn.1015988d
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003e6de
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 0x1003e6eb
call fcn.1015988d
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ebx, 1
add dword [esp + 0x2c], 0xc
jmp 0x1003e5c4
cmp ecx, ebp
mov dword [esp + 0x3c], ebp
jbe 0x1003e70d
call fcn.1015988d
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov ebx, ecx
jbe 0x1003e718
call fcn.1015988d
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.10036f80
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 0x1003e817
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
add ecx, 1
shr ecx, 1
test eax, eax
je 0x1003e794
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 0x1003e794
lea ecx, [eax + eax]
cmp ecx, 2
jae 0x1003e79e
mov ecx, 2
push ecx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esi + 0xe0]
call fcn.100f594a
test eax, eax
jbe 0x1003e817
push 0
lea ecx, [esp + 0x7c]
call fcn.10034e40
lea ebp, [esi + 0x88]
push eax
mov ecx, ebp
call fcn.100f63e7
cmp eax, dword [esi + 0x1cc]
jae 0x1003e817
cmp eax, 2
jae 0x1003e817
add eax, 1
push eax
push 0
lea ecx, [esp + 0x80]
call fcn.10034e40
push eax
mov ecx, ebp
call fcn.100f5ffd
push 0
lea ecx, [esp + 0x7c]
call fcn.10034e40
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.10005ff0
mov ecx, 0x101cee8c
call fcn.10004be0
cmp dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
jle 0x1003f4ce
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x1003f4ce
mov eax, dword [esp + 0x94]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jae 0x1003f4ce
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1003e875
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 0x1003e87e
call fcn.1015988d
mov ebp, dword [esp + 0x1c]
mov edx, dword [ebp]
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x28], edx
call fcn.10019c50
mov eax, dword [esp + 0x7c]
test eax, eax
mov byte [esp + 0x26c], 0xb
je 0x1003e929
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 0x1003e929
lea ebp, [esi + 0x1594]
push ebp
call ebx
mov cl, byte [esi + 0x15ac]
push ebp
mov byte [esp + 0x8c], cl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.100f669f
push eax
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 0xc
call fcn.1003a900
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019ce0
cmp dword [esp + 0x1e0], 0
jne 0x1003e9ff
lea ebp, [esi + 0x1594]
push ebp
call ebx
mov dl, byte [esi + 0x15ac]
push ebp
mov byte [esp + 0xdc], dl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xd8]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f6910
push eax
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x270], 0xd
call fcn.1003a900
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019ce0
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.10005470
cmp dword [esp + 0x64], 0x10
jb 0x1003e9d6
mov eax, dword [esp + 0x50]
push eax
call fcn.10159534
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x1e0], ebp
jne 0x1003ea01
add dword [esp + 0x2c], 1
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x26c], 0xa
call fcn.10019ce0
jmp 0x1003f3f3
xor ebp, ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10036b70
test al, al
je 0x1003eb5e
cmp dword [esp + 0x1e0], ebp
jbe 0x1003eb5e
cmp byte [esi + 0x1580], 0
mov ecx, dword [esp + 0x1c]
je 0x1003eb55
cmp ecx, ebp
mov byte [esi + 0x1580], 0
je 0x1003ea5b
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 0x1003ea68
call fcn.1015988d
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 0x1003eaa9
call fcn.1015988d
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov ebx, ecx
je 0x1003eac6
sub ebp, ecx
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x1003eacf
call fcn.1015988d
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 0x1003eb01
call fcn.1015988d
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 0x1003eb42
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 0x1003eb4b
call fcn.1015988d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
xor ebp, ebp
jmp 0x1003eb62
mov byte [esi + 0x1580], 1
jmp 0x1003eb62
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003eb7e
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 0x1003eb87
call fcn.1015988d
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003eba3
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 0x1003ebac
call fcn.1015988d
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa0]
cmp ebx, 2
mov dword [esp + 0x3c], ebp
je 0x1003ebc1
cmp ebx, 4
jne 0x1003ebc8
cmp dword [esp + 0x48], 3
je 0x1003ebd2
cmp byte [esp + 0x284], 0
je 0x1003ebee
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0x150]
call fcn.10135943
test al, al
je 0x1003f406
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1003ec0a
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 0x1003ec13
call fcn.1015988d
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.100396a0
mov dl, byte [esp + 0x284]
test dl, dl
jne 0x1003ec41
cmp ebx, 4
je 0x1003ec41
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x30]
ja 0x1003f446
test al, al
jne 0x1003ed16
cmp ebx, 2
je 0x1003ec53
cmp ebx, 4
jne 0x1003ec5e
cmp dword [esp + 0x48], 3
je 0x1003ed16
test dl, dl
jne 0x1003ed16
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1003f4c2
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 0x1003f4c2
cmp ebp, ebx
mov eax, ebp
mov dword [esp + 0x34], eax
jbe 0x1003ecae
call fcn.1015988d
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jb 0x1003ecc3
call fcn.1015988d
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 0x1003ece9
call fcn.1015988d
push ebp
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x24]
call fcn.100364a0
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039260
jmp 0x1003f3d4
mov ecx, dword [esp + 0x90]
cmp ecx, ebp
je 0x1003ed33
mov eax, dword [esp + 0x94]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x1003ed46
call fcn.1015988d
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 0x1003ed57
cmp ebx, 4
jne 0x1003ed5e
cmp dword [esp + 0x48], 3
je 0x1003ed9f
test dl, dl
jne 0x1003ed9f
mov eax, dword [edi + 4]
test eax, eax
je 0x1003ed83
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 0x1003ed88
call fcn.1015988d
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 0x1003edda
mov eax, dword [edi + 4]
test eax, eax
je 0x1003edc0
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 0x1003edc5
call fcn.1015988d
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 0x1003edfb
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 0x1003ee00
call fcn.1015988d
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 0x1003ee2c
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 0x1003ee31
call fcn.1015988d
mov ecx, dword [edi + 4]
cmp dword [ebx + ecx + 8], 0
je 0x1003ef4c
mov eax, ecx
test eax, eax
je 0x1003ee5f
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 0x1003ee64
call fcn.1015988d
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.100f5f2f
lea ecx, [esp + 0x138]
mov byte [esp + 0x26c], 0xb
call fcn.10019ce0
mov eax, dword [edi + 4]
test eax, eax
je 0x1003eec6
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 0x1003eecb
call fcn.1015988d
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.10005470
cmp dword [esp + 0x64], 0x10
jb 0x1003ef23
mov eax, dword [esp + 0x50]
push eax
call fcn.10159534
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.10019ce0
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x1d0]
call fcn.1003a770
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1003ef83
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 0x1003ef88
call fcn.1015988d
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1003efa9
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 0x1003efae
call fcn.1015988d
cmp dword [esp + 0xd4], 0x10
jb 0x1003efc8
mov edx, dword [esp + 0xc0]
push edx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x1e0], ebx
jbe 0x1003f494
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], 0x10199614
mov dword [esp + 0xbc], eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
mov byte [esp + 0x26c], 0x11
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x1003f08e
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
lea ebx, [esi + 0x18]
mov dword [esp + 0xec], eax
jne 0x1003f043
call fcn.1015988d
mov eax, dword [esp + 0xec]
add eax, 8
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x38], eax
call fcn.1000af80
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.10038440
mov ebx, dword [esp + 0x40]
push ebx
mov byte [esp + 0x270], 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x17], 0
mov dword [esp + 0xb4], 0x10199600
mov ecx, edi
je 0x1003f238
push ebp
call fcn.10034dd0
push 0
push 0
lea ecx, [esp + 0xb0]
mov ebx, eax
call fcn.10035880
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], 0x1019a348
mov dword [esp + 0xa8], 0x101996a4
call fcn.100a8e90
xor ebx, ebx
push ebx
push ebp
mov ecx, edi
call fcn.10034dd0
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x157c]
mov ecx, dword [esi + 0x150]
push edx
push eax
call fcn.10134c6d
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.10034dd0
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [esp + 0x1d0]
push edx
mov ecx, esi
call fcn.10036790
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.10034dd0
mov eax, dword [eax + 0x14]
push eax
push ebp
mov ecx, edi
call fcn.10034dd0
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.10034dd0
push ebx
mov ecx, eax
call fcn.10036440
lea ecx, [esp + 0x11c]
mov byte [esp + 0x26c], 0x12
mov dword [esp + 0x118], 0x1019a348
mov dword [esp + 0x11c], 0x101996a4
call fcn.100a8e90
mov eax, dword [esp + 0x6c]
test eax, eax
mov byte [esp + 0x26c], 0x10
je 0x1003f215
push eax
call fcn.10159534
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.10034dd0
push ebp
mov ecx, edi
call fcn.10034dd0
jmp 0x1003f2fd
push 0
push ebp
call fcn.10034dd0
mov ecx, eax
call fcn.10036d80
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x157c]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x150]
call fcn.10134c6d
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.10036790
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.10034dd0
push ebx
mov ecx, eax
call fcn.10036440
lea ecx, [esp + 0xf4]
mov byte [esp + 0x26c], 0x10
mov dword [esp + 0xf0], 0x1019a348
mov dword [esp + 0xf4], 0x101996a4
call fcn.100a8e90
xor ebx, ebx
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esi + 0x88]
call fcn.100f5e6c
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.10005470
cmp dword [esp + 0xd4], 0x10
jb 0x1003f35b
mov eax, dword [esp + 0xc0]
push eax
call fcn.10159534
add esp, 4
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
je 0x1003f37b
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 0x1003f384
call fcn.1015988d
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 0x1003f3a7
call fcn.1015988d
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.1013ae23
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x1003f3d4
push eax
call fcn.10159534
add esp, 4
add dword [esp + 0x2c], 1
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x26c], 0xa
call fcn.10019ce0
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x38]
jl 0x1003e830
jmp 0x1003f4ce
lea ecx, [esp + 0x1cc]
call fcn.10019ce0
lea ecx, [esp + 0x78]
call fcn.1003d500
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003f42c
push eax
call fcn.10159534
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 0x1003dfee
lea ecx, [esp + 0x1cc]
call fcn.10019ce0
lea ecx, [esp + 0x78]
call fcn.1003d500
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003f46c
push eax
call fcn.10159534
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 0x1003e57b
push eax
call fcn.10159534
add esp, 4
mov al, 1
jmp 0x1003f509
lea edx, [esp + 0x1cc]
push edx
lea ecx, [esp + 0xc0]
call fcn.10005ff0
cmp dword [esp + 0xd4], 0x10
jb 0x1003f4c2
mov eax, dword [esp + 0xc0]
push eax
call fcn.10159534
add esp, 4
lea ecx, [esp + 0x1cc]
call fcn.10019ce0
lea ecx, [esp + 0x78]
call fcn.1003d500
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003f4e8
push eax
call fcn.10159534
add esp, 4
cmp dword [esp + 0x9c], 0
mov eax, dword [esp + 0x90]
setne bl
test eax, eax
je 0x1003f507
push eax
call fcn.10159534
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.10159cce
add esp, 0x25c
ret 0x14