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

Disassembly:
sub esp, 0x38c
push ebx
mov ebx, dword [esp + 0x3a8]
push ebp
push esi
push edi
xor edx, edx
xor eax, eax
push edx
mov ecx, 0x144
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3ac]
lea edi, [ebx + 0x170]
push 0x400
push edi
mov dword [esp + 0x84], edx
mov dword [ebx + 0x124], 4
mov dword [esp + 0x30], edx
mov dword [ebx + 0x104], eax
mov dword [esp + 0x3c], 1
call fcn.0083d7c2
mov ecx, dword [0x7626d4]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov esi, dword [eax + 8]
mov ecx, dword [esi]
mov ebp, dword [esp + 0x3ac]
push ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x84], ecx
mov dword [esi], edi
call fcn.008494f2
add eax, ebp
push eax
push edi
call fcn.00841a72
mov edx, dword [esp + 0x3bc]
push 0x10
push edx
mov dword [ebx + 0x1a8], eax
call fcn.008416a2
mov ecx, dword [ebx + 0x1a8]
add esp, 0x20
test ecx, ecx
mov dword [ebx + 0x1a4], eax
je 0x83c5bf
test eax, eax
je 0x83c5bf
push ecx
call fcn.008494b2
add esp, 4
push 0
push 0x1000
push 4
push 0x75d158
push 0x5df350
mov byte [eax], 0
lea eax, [esp + 0x1b0]
push ebp
push eax
call fcn.00844412
add esp, 0x14
push eax
call fcn.00844202
add esp, 0xc
test eax, eax
mov dword [esp + 0x48], eax
jl 0x83c5bf
push ebp
mov esi, 4
push edi
mov dword [esp + 0x38], esi
call fcn.00841a72
add esp, 8
test eax, eax
mov dword [ebx + 0x1ac], eax
je 0x83c594
push eax
call fcn.008494b2
mov edi, dword [esp + 0x4c]
push esi
push 0x40
lea ecx, [esp + 0x88]
push ecx
push edi
mov byte [eax], 0
call fcn.008442b2
add esp, 0x14
test eax, eax
jne 0x83c594
cmp byte [esp + 0x7c], 0xfe
jne 0x83c594
cmp byte [esp + 0x7d], 1
jne 0x83c594
mov al, byte [esp + 0x7e]
cmp al, 6
je 0x83c62a
cmp al, 7
je 0x83c62a
cmp al, 9
je 0x83c62a
mov dword [esp + 0x30], 6
mov eax, dword [esp + 0x24]
push eax
call fcn.00841642
mov eax, dword [esp + 0x4c]
add esp, 4
test eax, eax
jle 0x83c5b4
push 0x10
push eax
call fcn.00844022
add esp, 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x3a0]
mov ecx, dword [esp + 0x74]
mov dword [esi], ecx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
push 0x66
push ebp
mov eax, esi
call fcn.0083b4a2
mov ecx, dword [ebx]
add esp, 8
test ecx, ecx
je 0x83c5e7
mov edx, dword [ecx]
push 1
call dword [edx + 0x10]
lea eax, [ebx + 0xc]
push eax
mov dword [ebx], 0
mov dword [ebx + 0x104], 0
call fcn.008470d2
lea eax, [ebx + 0x170]
push 0
push eax
call fcn.00841952
mov ecx, dword [ebx + 0x1a4]
push ecx
call fcn.00841642
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
mov dl, byte [esp + 0x97]
movzx eax, al
sub eax, 6
cmp eax, 2
mov dword [esp + 0x70], eax
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x11
mov dword [esp + 0x5c], eax
push 0
lea eax, [esp + 0x80]
push eax
push edi
mov byte [esp + 0x3b], dl
mov dword [esp + 0x3c], 3
call fcn.0083c032
add esp, 0xc
test eax, eax
mov dword [esp + 0x40], eax
je 0x83c594
lea ecx, [esp + 0x19c]
push ecx
call fcn.008494b2
mov byte [eax], 0
movzx eax, byte [esp + 0x83]
mov dl, byte [esp + 0x82]
push eax
mov byte [ebx + 0x4f8], dl
call fcn.00780512
mov dword [ebx + 0xf0], eax
movzx eax, word [esp + 0xa2]
mov dword [esp + 0x58], eax
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], eax
mov al, byte [esp + 0xa4]
add esp, 8
test al, al
mov dword [esp + 0x54], 0
jne 0x83c739
movzx eax, byte [esp + 0xa5]
mov ecx, dword [esp + 0x9e]
movzx edx, byte [esp + 0xa4]
mov dword [ebx + 0x108], eax
movzx eax, byte [esp + 0xa2]
mov dword [ebx + 0xd4], ecx
movzx ecx, byte [esp + 0xa6]
mov dword [ebx + 0xf4], edx
mov edx, dword [esp + 0xa7]
push 0
push eax
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0xd8], edx
call fcn.00843742
add esp, 8
mov dword [ebx + 0x15c], eax
mov dword [esp + 0x54], 1
mov eax, dword [ebx + 0x15c]
test eax, eax
jne 0x83c76c
mov ecx, dword [0x67eb20]
mov edx, dword [ecx + 0x5c]
mov eax, dword [edx + 4]
test eax, eax
je 0x83c761
push ebp
push 0x637b58
call fcn.007b0982
add esp, 8
mov eax, dword [0x67eb20]
mov dword [ebx + 0x15c], eax
test byte [esp + 0x50], 8
mov dword [ebx + 0x100], 1
je 0x83c787
mov dword [ebx + 0x124], 8
mov eax, dword [ebx + 0xf0]
mov edx, dword [esp + 0x8e]
cmp eax, 7
mov eax, dword [esp + 0x92]
mov dword [ebx + 0xd0], eax
movzx eax, word [esp + 0x82]
push 0
mov dword [ebx + 0xcc], edx
cdq
push 0
push edx
push eax
setne cl
mov dword [esp + 0x40], esi
movzx esi, word [esp + 0xa8]
push edi
mov byte [ebx + 0x13e], cl
call fcn.00847ac2
push esi
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.0083b1f2
add esp, 0x20
test eax, eax
jne 0x83c594
mov edx, dword [esp + 0x24]
mov al, byte [edx]
test al, al
jns 0x83c80c
mov ecx, edx
movzx edi, byte [ecx + 1]
shl edi, 7
and eax, 0x7f
or edi, eax
mov dword [ebx + 0x60], edi
movzx ebp, word [ecx + 2]
jmp 0x83c81a
movzx edi, al
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x60], edi
movzx ebp, byte [eax + 1]
mov dword [ebx + 0x64], ebp
lea ecx, [ebx + 0x88]
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ebp
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
call fcn.007f2412
lea ecx, [ebx + 0x98]
push edi
call fcn.007f2412
mov edx, dword [esp + 0x24]
movzx eax, word [edx + 4]
lea esi, [edi + edi*4]
lea ecx, [ebp + ebp*2]
shl esi, 3
lea edi, [esi + ecx*8]
add eax, edi
push eax
lea eax, [ebx + 0x170]
push eax
call fcn.00841822
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x83c594
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
lea ecx, [eax*4]
lea edi, [esi + ebp]
mov esi, dword [esp + 0x24]
push ecx
lea eax, [ebx + 0x170]
push eax
mov dword [ebx + 0xb8], ebp
mov dword [esp + 0x54], edi
add esi, 6
call fcn.00841822
add esp, 8
test eax, eax
je 0x83c594
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x83c9d6
mov edx, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
nop
cmp edx, 3
jne 0x83c90a
movzx ecx, word [esi]
xor ecx, 1
mov dword [ebp + 4], ecx
movzx ecx, word [esi + 2]
mov dword [ebp], ecx
movzx ecx, byte [esi + 4]
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + 5]
mov dword [ebp + 0x14], ecx
add esi, 8
jmp 0x83c92b
movzx ecx, byte [esi]
xor ecx, 1
mov dword [ebp + 4], ecx
movzx ecx, word [esi + 1]
mov dword [ebp], ecx
movzx ecx, byte [esi + 3]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], 0
add esi, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x20], eax
je 0x83c9c0
mov dword [esp + 0x28], ecx
mov edi, edi
mov dword [eax], 0
xor ecx, ecx
mov cx, word [esi]
add eax, 4
and ecx, 0x3fff
mov word [edi + 0x12], cx
movzx ecx, word [esi + 2]
dec ecx
cmp edx, 1
mov dword [edi + 4], ecx
mov cx, word [esi + 5]
mov word [edi + 0x10], cx
jb 0x83c982
mov cl, byte [esi + 4]
mov byte [edi + 0x14], cl
mov cx, word [esi + 7]
mov word [edi + 0xc], cx
add esi, 9
jmp 0x83c9aa
movzx cx, byte [esi + 4]
mov word [edi + 0xc], cx
xor ecx, ecx
mov cx, word [edi + 0xc]
cmp cx, 0x80
mov byte [edi + 0x14], 0
jbe 0x83c9a7
and ecx, 0x7f
mov word [edi + 0xc], cx
mov byte [edi + 0x14], 0x80
add esi, 7
mov cx, word [edi + 0xc]
mov word [edi + 0xe], cx
mov ecx, dword [esp + 0x28]
add edi, 0x18
dec ecx
mov dword [esp + 0x28], ecx
jne 0x83c942
mov ecx, dword [esp + 0x3c]
add ebp, 0x28
dec ecx
mov dword [esp + 0x3c], ecx
jne 0x83c8e2
mov dword [esp + 0x4c], edi
push esi
push edi
mov dword [esp + 0x74], edi
call fcn.00916e12
movzx edx, word [esp + 0x94]
mov al, byte [esp + 0x9e]
add esp, 8
cmp al, 1
mov dword [ebx + 0x58], edx
jne 0x83ca04
mov dword [ebx + 0x114], 1
mov eax, dword [ebx + 0xf0]
push eax
push ebx
call fcn.00781782
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [ebx], eax
je 0x83c594
mov dword [ebx + 0x164], ecx
mov dword [ebx + 0x12c], ecx
test byte [esp + 0x3a8], 1
mov ecx, dword [esp + 0x3ac]
mov dword [esp + 0x30], 4
jne 0x83ca4f
test ch, 0x10
mov edi, 1
je 0x83ca54
mov edi, 2
test cl, 9
mov dword [esp + 0x3c], edi
je 0x83ca62
inc edi
mov dword [esp + 0x3c], edi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x58]
lea esi, [eax + ecx + 8]
and esi, 0xfffffff8
mov edx, esi
imul edx, edi
push edx
lea eax, [ebx + 0x170]
push eax
mov dword [esp + 0x4c], esi
call fcn.00841822
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [ebx + 0x44], ebp
je 0x83c594
mov eax, dword [ebx + 0x58]
mov byte [eax + ebp], 0
mov ax, word [esp + 0x8a]
cmp ax, 0xffff
mov dword [ebx + 0x5c], esi
jne 0x83caba
mov eax, dword [esp + 0xab]
jmp 0x83cabd
movzx eax, ax
movzx ecx, word [esp + 0x82]
mov edx, dword [ebx + 0x58]
push 4
push 0
add ecx, eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push ebp
push eax
call fcn.00846682
add esp, 0x18
test eax, eax
jne 0x83c594
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], ecx
jbe 0x83cb41
mov eax, ebp
lea edx, [ebx + 0x44]
sub eax, esi
mov dword [esp + 0x28], edx
lea esp, [esp]
test ecx, ecx
mov dword [edx], ebp
je 0x83cb29
mov ecx, dword [ebx + 0x58]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
inc ecx
add edx, 4
add ebp, esi
add eax, esi
cmp ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
jb 0x83cb02
cmp edi, 2
jne 0x83cb5c
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x4c], eax
test byte [esp + 0x3a8], 0x10
je 0x83cb5c
mov ecx, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
push 0
push 0
push 0
push edx
push esi
mov dword [ebx + 0x50], 0
call fcn.00847ac2
push 4
push 0x120
lea eax, [esp + 0x98]
push eax
push esi
call fcn.008442b2
add esp, 0x24
test eax, eax
jne 0x83c594
movzx ecx, word [esp + 0x17e]
movzx edx, word [esp + 0x188]
movzx eax, word [esp + 0x18a]
movzx ebp, word [esp + 0x180]
movzx edi, word [esp + 0x18c]
mov dword [ebx + 0x54], ecx
movzx ecx, word [esp + 0x18e]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
movzx edx, word [esp + 0x196]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x198]
lea ecx, [esp + 0xab]
push ecx
lea esi, [ebx + 0x170]
push esi
mov dword [ebx + 0x7c], edx
mov dword [esp + 0x3c], eax
call fcn.00841a72
mov edx, dword [ebx + 0x54]
mov dword [ebx + 0x158], eax
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax*2 + 2]
mov eax, dword [esp + 0x20]
lea edx, [edi + ecx*2]
add edx, eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add ecx, edx
add ecx, eax
push ecx
push esi
call fcn.00841822
add esp, 0x10
test eax, eax
mov dword [esp + 0x20], eax
je 0x83c594
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x54]
imul eax, dword [esp + 0x5c]
add eax, edx
add eax, ecx
add eax, esi
add eax, ebp
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
push edx
push eax
call fcn.0083b1f2
add esp, 0xc
test eax, eax
jne 0x83c594
mov ecx, dword [esp + 0x24]
mov esi, dword [ebx + 0x54]
mov edx, dword [esp + 0x20]
add ebp, ecx
lea ecx, [edx + esi*4 + 4]
mov edx, dword [esp + 0x14]
mov eax, edx
shl eax, 4
mov dword [esp + 0x40], eax
add eax, ecx
mov dword [ebx + 0xec], ecx
lea ecx, [esi + edi]
add ecx, dword [esp + 0x18]
test edx, edx
mov dword [esp + 0x28], eax
lea eax, [eax + ecx*4 + 0xc]
mov dword [esp + 0x18], eax
jne 0x83ccc6
mov dword [ebx + 0xec], edx
imul esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ecx
shr ecx, 2
add esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x60]
add eax, ecx
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
sub esi, ecx
add esi, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x44], eax
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebx + 0xdc]
mov eax, 1
lea esi, [esp + 0x2c]
call fcn.0083b692
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0xec]
call fcn.0083b692
mov esi, dword [ebx + 0xec]
mov edx, dword [esp + 0x48]
add edx, esi
add esp, 8
cmp esi, edx
jae 0x83cdc5
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
lea eax, [ebx + 0x170]
push eax
call fcn.00841822
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
je 0x83c594
mov eax, dword [esi]
xor edi, edi
test eax, eax
jbe 0x83cda8
nop
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x83cd92
mov ecx, dword [esi + 0xc]
sub eax, edx
mov dword [ecx + edi*4], eax
mov eax, dword [esi]
inc edi
cmp edi, eax
jb 0x83cd82
mov edx, dword [esi + 0xc]
mov dword [edx + edi*4], 0
mov eax, dword [ebx + 0xec]
mov edx, dword [esp + 0x40]
add esi, 0x10
add eax, edx
cmp esi, eax
jb 0x83cd55
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x83cde9
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebx + 0xbc]
mov eax, 1
lea esi, [esp + 0x2c]
call fcn.0083b692
add esp, 4
mov edx, dword [esp + 0x48]
push 0x10
push edx
call fcn.00844022
mov ecx, dword [ebx + 0x44]
mov eax, dword [esp + 0x5c]
add esp, 8
dec ecx
test eax, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x60], ecx
je 0x83ce40
lea eax, [ecx + 1]
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x34], eax
mov dword [ebx + 0x1d0], eax
mov eax, dword [esp + 0x50]
and al, 1
neg al
sbb eax, eax
add eax, 2
lea edx, [ecx + eax + 6]
shr edx, 3
mov dword [esp + 0x18], eax
mov dword [ebx + 0x1bc], edx
jmp 0x83ce6a
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x58]
add eax, 7
shr eax, 3
sub edx, eax
mov dword [ebx + 0x1bc], eax
lea eax, [edx + ecx + 1]
mov dword [esp + 0x34], eax
mov dword [ebx + 0x1d0], eax
mov dword [esp + 0x18], 1
mov eax, dword [ebx + 0x54]
cmp eax, 0x20
sbb ecx, ecx
inc ecx
mov dword [esp + 0x28], ecx
je 0x83cea2
push 0
push 0
push 0x4d6ac0
push 0
push 0
push eax
mov eax, dword [0x75d678]
push eax
lea ecx, [ebx + 0xc]
push ecx
call fcn.00847022
add esp, 0x20
neg al
sbb eax, eax
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x54]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x83d113
cmp dword [esp + 0x70], 3
mov dword [esp + 0x50], 0
jne 0x83cf75
mov eax, dword [ebp + 5]
movzx esi, byte [ebp + 0xd]
movzx edx, word [ebp + 3]
movzx ecx, word [ebp + 0xf]
movzx edi, byte [ebp + 0xa]
and eax, 0xffffff
cmp esi, 0xff
mov dword [esp + 0x40], eax
movzx eax, word [ebp + 8]
mov dword [esp + 0x54], eax
movzx eax, byte [ebp + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], ecx
jne 0x83cf16
movzx edx, byte [ebp + 0xe]
mov dword [esp + 0x50], edx
mov dword [esp + 0x10], 0x6833c0
jmp 0x83cf49
mov dl, byte [ebp + 0xe]
test dl, dl
jne 0x83cf27
mov dword [esp + 0x10], 0x6833c0
jmp 0x83cf49
movzx eax, dl
push 0
push eax
call fcn.00843742
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x83d219
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
test ecx, ecx
jne 0x83cf5e
mov dword [esp + 0x64], 0x5df350
mov dword [esp + 0x68], ecx
jmp 0x83cff1
mov edx, dword [esp + 0x44]
mov dword [esp + 0x64], edx
add edx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], edx
jmp 0x83cff1
movzx eax, word [ebp + 6]
movzx ecx, byte [ebp + 3]
movzx edx, word [ebp + 4]
movzx edi, byte [ebp + 8]
mov esi, eax
mov dword [esp + 0x4c], ecx
movzx ecx, byte [ebp + 0xa]
shr esi, 3
and esi, 0xf
test al, 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], ecx
je 0x83cfd9
and eax, 0x402
cmp eax, 0x400
je 0x83cfcf
mov edx, dword [ebx + 0x15c]
mov eax, dword [edx + 0x10]
push 0
push 0x10
push eax
call fcn.00843872
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x83cfe3
mov dword [esp + 0x10], 0x6833c0
jmp 0x83cfe3
mov ecx, dword [ebx + 0x15c]
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x83d02c
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x4c], 1
jbe 0x83d01d
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xec]
shl eax, 4
lea edx, [eax + ecx - 0x10]
push edx
call fcn.0083ae82
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [ebx + 0xec]
shl eax, 4
lea eax, [eax + ecx - 0x10]
jmp 0x83d02e
xor eax, eax
mov edx, dword [ebx + 0xe4]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x10]
push ebx
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
and edi, 0x7f
push edi
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push esi
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x88]
push edx
add eax, ecx
push eax
call fcn.00771a22
mov edx, dword [esp + 0x50]
add esp, 0x30
test eax, eax
mov dword [edx], eax
je 0x83d22e
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x20], ecx
test byte [eax + 0x50], 1
mov dword [eax + 0x24], edx
jne 0x83d0b7
mov ecx, dword [esp + 0x18]
shl ecx, 1
cmp ecx, 0x100
mov dword [esp + 0x18], ecx
jne 0x83d0b7
inc dword [esp + 0x34]
mov dword [esp + 0x18], 1
cmp dword [eax + 0x48], 0xf
jne 0x83d0c3
mov dword [ebx + 0x14c], eax
cmp dword [ebx + 0x154], eax
jne 0x83d0d5
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x11c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x83d0ee
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [ebx + 0xc]
push edx
call fcn.00847202
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x54]
inc eax
add edx, 4
add ebp, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jb 0x83ceb5
mov eax, dword [esp + 0x38]
test eax, eax
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0
je 0x83d53e
mov eax, dword [0x67ea54]
push 3
lea edx, [ebx + 0xbc]
push edx
push eax
call fcn.00842c62
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov ebp, eax
add esp, 0xc
dec ebp
mov dword [esp + 0x20], ebp
call dword [edx + 0x12c]
mov ecx, dword [ebx + 0x60]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xb8]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
jbe 0x83d4f6
lea ebp, [eax + 8]
mov dword [esp + 0x38], esi
jmp 0x83d182
mov eax, dword [ebx + 0xc4]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx*4]
mov esi, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0xb8]
xor edx, edx
add eax, esi
test byte [eax + 4], 0x80
mov dword [esp + 0x18], edx
je 0x83d1b1
mov dword [eax + 0x14], 4
cmp dword [esp + 0x20], 0x40
jb 0x83d243
test byte [ebp - 4], 1
je 0x83d243
cmp dword [ebp], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
jbe 0x83d243
lea esi, [edi + 0xc]
movzx eax, word [esi + 6]
test eax, eax
je 0x83d23b
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x83d23b
mov eax, edx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x4c]
movzx ecx, word [esi]
cmp eax, ecx
jne 0x83d23b
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x83d1da
jmp 0x83d243
movzx eax, byte [ebp + 0xe]
mov dword [esp + 0x30], 5
mov dword [esp + 0x78], eax
jmp 0x83c594
mov dword [esp + 0x30], 4
jmp 0x83c594
mov dword [esp + 0x20], 0x40
cmp dword [ebp], 0
mov dword [esp + 0x14], 0
jbe 0x83d48e
cmp byte [esp + 0x2f], 1
ja 0x83d271
movzx edx, word [edi + 0xc]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.0083b742
add esp, 8
mov word [edi + 0x12], ax
mov ax, word [edi + 0x12]
test ax, ax
je 0x83d469
mov edx, dword [ebx + 4]
movzx ecx, ax
mov esi, dword [edx + ecx*4 - 4]
mov dword [edi], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x83d2ba
sub eax, dword [ebx + 0x44]
mov dword [edi + 8], eax
mov al, byte [esi + 0x52]
inc word [edi + 0xe]
mov byte [edi + 0x16], al
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 4]
or eax, 0x40
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
inc edx
inc ecx
mov dword [ebp + 4], edx
mov dword [eax], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
cmp eax, 0xfc
je 0x83d2d6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp eax, 0xfd
jne 0x83d30d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
cmp eax, 0xfc
jne 0x83d2e8
or byte [edi + 0x14], 0x20
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
mov ecx, 2
add edx, ecx
mov dword [ebp + 4], edx
add word [edi + 0xe], cx
add dword [eax], ecx
mov al, byte [esi + 0x50]
test al, al
js 0x83d30d
or dword [ebp - 4], 0x1000
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x83d34f
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
je 0x83d342
test byte [ebp - 4], 1
je 0x83d339
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx]
mov eax, 4
je 0x83d33e
mov eax, 8
or word [esi + 0x50], ax
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x30]
call fcn.00775df2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
movzx ecx, word [edi + 0xc]
cmp eax, ecx
jne 0x83d3da
test byte [esi + 0x50], 0x10
jne 0x83d3da
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [edx + 0x130]
test al, 0x40
je 0x83d3b3
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [ebx + 0x98]
call fcn.0083b0c2
mov edx, dword [esp + 0x10]
push edx
lea ecx, [ebx + 0x90]
call fcn.00775df2
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x38]
call fcn.00775df2
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [edx + 0x130]
test al, 4
je 0x83d3da
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x40]
call fcn.00775df2
mov al, byte [edi + 0x14]
test al, al
js 0x83d3f2
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jne 0x83d3f2
mov eax, edx
inc eax
mov dword [esp + 0x18], eax
or byte [esi + 0x51], 0x40
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, ecx
mov ax, word [esi + 0x50]
jne 0x83d429
or eax, 2
mov word [esi + 0x50], ax
mov eax, dword [esp + 0x44]
test ah, ah
jns 0x83d429
mov edx, dword [ebx + 0x88]
mov dword [esi + 0x38], edx
mov eax, dword [ebx + 0x8c]
mov dword [esi + 0x3c], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
movzx ecx, word [edi + 0xc]
cmp eax, ecx
je 0x83d45c
or byte [edi + 0x14], 4
test byte [esi + 0x50], 0x10
jne 0x83d45c
push ebx
lea eax, [ebx + 0x170]
push eax
mov ecx, esi
call fcn.007f2452
movzx edx, word [edi + 0xc]
mov esi, eax
mov dword [edi], eax
mov dword [esi + 0x4c], edx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x83d477
or byte [edi + 0x14], 4
jmp 0x83d477
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov dword [ebp - 4], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
add edi, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x83d255
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp]
add ecx, edx
cmp dword [ebx + 0x6c], ecx
jae 0x83d4a8
mov dword [ebx + 0x6c], ecx
mov edx, dword [eax]
add dword [ebx + 0x74], edx
test byte [ebp - 4], 1
jne 0x83d4bd
test dword [esp + 0x44], 0x40000000
je 0x83d4c7
mov ecx, dword [eax]
cmp dword [ebx + 0x70], ecx
jae 0x83d4c7
mov dword [ebx + 0x70], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add eax, 0x28
inc ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x60]
add edx, 0x28
add ebp, 0x28
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edx
jb 0x83d182
mov ebp, dword [esp + 0x20]
xor esi, esi
cmp ebp, 0x40
jae 0x83d540
push ebp
lea ecx, [ebx + 0x88]
call fcn.00796242
test al, al
je 0x83d540
mov ecx, dword [ebx + 0xb8]
lea eax, [ebp + ebp*4]
lea eax, [ecx + eax*8]
mov dword [ebx + 0x68], ebp
cmp dword [eax + 8], 1
jne 0x83d547
mov edx, dword [eax + 0x18]
mov edi, dword [edx]
cmp edi, esi
je 0x83d547
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
cmp eax, 2
jne 0x83d547
mov dword [ebx + 0x150], edi
jmp 0x83d547
xor esi, esi
mov dword [ebx + 0x68], 0x40
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00841642
mov al, byte [esp + 0x33]
add esp, 4
cmp al, 1
mov dword [esp + 0x24], esi
ja 0x83d5cc
mov edx, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x1d0]
add edx, 7
shr edx, 3
mov ecx, edx
mov ebp, ecx
shr ecx, 2
mov eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ebp, dword [ebx + 0x5c]
mov edi, dword [ebx + 0x1d0]
add edi, ebp
mov ecx, edx
mov ebp, ecx
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x3c], 2
jbe 0x83d5cc
mov edi, dword [ebx + 0x1d0]
mov ecx, edx
mov edx, dword [ebx + 0x5c]
lea edi, [edi + edx*2]
mov edx, ecx
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebx + 0x14c]
cmp edi, esi
mov ebp, 0x200
je 0x83d605
lea eax, [ebx + 0x128]
push eax
push edi
push ebx
call fcn.007ae582
add esp, 0xc
cmp eax, esi
mov dword [ebx + 0x120], eax
jge 0x83d601
mov dword [edi + 0x48], esi
mov dword [ebx + 0x14c], esi
jmp 0x83d605
or word [edi + 0x50], bp
mov eax, dword [ebx + 0x80]
cmp eax, esi
je 0x83d65b
lea ecx, [eax*4 + 4]
push ecx
lea eax, [ebx + 0x170]
push eax
call fcn.00841822
add esp, 8
cmp eax, esi
mov dword [ebx + 8], eax
je 0x83c594
mov edx, dword [ebx + 4]
mov ecx, dword [edx]
xor esi, esi
cmp ecx, esi
je 0x83d657
lea ebx, [ebx]
test byte [ecx + 0x50], 0x10
je 0x83d64d
mov dword [eax], ecx
add eax, 4
mov ecx, dword [edx + 4]
add edx, 4
cmp ecx, esi
jne 0x83d642
mov dword [eax], esi
jmp 0x83d667
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 4]
lea ecx, [eax + edx*4]
mov dword [ebx + 8], ecx
cmp dword [esp + 0x3a8], esi
mov dword [esp + 0x30], 2
je 0x83d745
lea edx, [esp + 0x19c]
push edx
mov eax, edx
push eax
call fcn.00849192
mov eax, dword [esp + 0x3b0]
add esp, 8
test ebp, eax
je 0x83d6a1
mov eax, 4
jmp 0x83d6c8
mov eax, dword [esp + 0x3a8]
test al, 0x40
jne 0x83d6c3
test byte [0x75d7ec], 8
jne 0x83d6c3
and al, 0x88
neg al
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
jmp 0x83d6c8
mov eax, 1
or eax, dword [esp + 0x3b0]
push eax
mov eax, dword [esp + 0x3ac]
shr eax, 3
not eax
and eax, 2
push eax
lea ecx, [esp + 0x1a4]
push ecx
mov ecx, dword [ebx]
call fcn.00780e12
mov edi, eax
cmp edi, esi
je 0x83d745
cmp edi, 0x91
jne 0x83d719
mov ecx, dword [ebx]
mov edx, dword [ecx]
call dword [edx + 0x164]
test eax, eax
je 0x83d719
test byte [esp + 0x3b0], 0x20
jne 0x83d719
mov al, 1
jmp 0x83d71b
xor al, al
cmp edi, 0x9b
mov byte [ebx + 0x142], al
jne 0x83c594
mov dword [esp + 0x30], 1
call fcn.00844ef2
mov dword [eax], 2
jmp 0x83c594
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x158]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x58]
mov byte [ebx + 0x13e], al
pop edi
mov dword [edx], ecx
mov eax, dword [0x75d7f0]
pop esi
inc eax
pop ebp
mov dword [0x75d7f0], eax
xor eax, eax
pop ebx
add esp, 0x38c
ret