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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
push ebx
mov ebx, ecx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edx
mov edx, dword [ebp + 0x14]
lea eax, [ebx + edx]
mov dword [esp + 0x40], eax
add eax, 0xfffffff8
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 4]
add eax, dword [edi + 0xc]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x88]
lea ecx, [edi + 0x2c]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0xa8], eax
cmp eax, 0xfff
jb 0x4154df
mov dword [esp + 0xa8], 0xfff
mov ecx, dword [edi + 0x18]
mov esi, dword [esp + 0x7c]
mov edx, dword [esi + 0x14]
xor eax, eax
cmp dword [edi + 0x84], 3
mov dword [esp + 0xac], ecx
mov ecx, dword [ebp + 0x14]
setne al
push 2
push ebx
mov dword [esp + 0x80], edx
add eax, 3
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x74], eax
call fcn.00412270
xor ecx, ecx
add esp, 8
cmp ebx, dword [esp + 0x10]
sete cl
lea esi, [ebx + ecx]
mov dword [esp + 0x8c], esi
cmp esi, dword [esp + 0xa4]
jae 0x417ab2
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 0x18]
mov eax, esi
sub eax, dword [esp + 0x90]
mov edx, 0
sete dl
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x84]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edx
lea edx, [ebx + ecx]
cmp esi, edx
jb 0x416332
mov eax, esi
sub eax, ecx
mov dword [esp + 0x18], eax
cmp ebx, eax
jae 0x4155ab
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
push 0
push eax
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x2c]
push edx
mov eax, edi
call fcn.00412a70
add ebx, eax
add esp, 0xc
cmp ebx, dword [esp + 0x18]
jb 0x415586
mov eax, dword [esp + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x4155c2.4
jmp dword [eax*4 + 0x417aec]
mov eax, dword [edi + 0x88]
mov dword [esp + 0x54], eax
cmp eax, 0xfff
jb 0x4155e2
mov dword [esp + 0x54], 0xfff
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x24], eax
mov ebx, esi
sub ebx, eax
mov eax, dword [esi]
imul eax, eax, 0x9e3779b1
mov dword [esp + 0x10], ecx
mov ecx, 0x20
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
shr eax, cl
mov ecx, dword [edi + 0x78]
dec ecx
mov dword [esp + 0x60], ebx
mov edx, dword [edx + eax*4]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], ecx
dec eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], ecx
cmp eax, ebx
jae 0x415649
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x74]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x10], edx
mov edx, ebx
sub edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x1c], edx
jbe 0x415674
mov ecx, ebx
sub ecx, edx
cmp dword [edi + 0x14], 0
je 0x41567d
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x41568d
mov dword [esp + 0x5c], 1
mov ecx, dword [esp + 0x18]
and eax, ebx
lea eax, [ecx + eax*8]
mov ecx, dword [edi + 0x80]
mov dword [esp + 0x14], eax
add eax, 4
mov dword [esp + 0x34], eax
mov eax, 1
shl eax, cl
lea edx, [ebx + 9]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 3]
mov dword [esp + 0x44], eax
cmp eax, ecx
jae 0x41579c
sub ebx, dword [edi + 0xc]
mov dword [esp + 0x10], ebx
jmp 0x4156f4
mov ebx, dword [esp + 0x10]
cmp eax, 3
jne 0x415703
mov eax, dword [esp + 0x94]
dec eax
jmp 0x41570a
mov eax, dword [esp + eax*4 + 0x94]
lea ecx, [eax - 1]
cmp ecx, ebx
jae 0x415780
mov ecx, eax
neg ecx
mov edx, dword [ecx + esi]
push 3
mov eax, esi
shl edx, 8
call fcn.004129e0
add esp, 4
cmp eax, edx
jne 0x415780
mov ebx, dword [esp + 0x48]
lea edx, [ecx + esi + 3]
lea ecx, [esi + 3]
call fcn.0043d980
add eax, 3
cmp eax, dword [esp + 0xc]
jbe 0x415780
mov ebx, dword [esp + 0x44]
sub ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8], ebx
mov dword [edx + ecx*8 + 4], eax
inc ecx
mov dword [esp + 0x30], ecx
xor ecx, ecx
lea edx, [eax + esi]
cmp edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
sete cl
cmp dword [esp + 0x54], eax
sbb edx, edx
neg edx
or ecx, edx
jne 0x41599c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
inc eax
add ecx, 3
mov dword [esp + 0x44], eax
cmp eax, ecx
jb 0x4156f0
mov ebx, dword [esp + 0x60]
cmp dword [esp + 0xc], 3
jae 0x415831
lea eax, [esp + 0xac]
push eax
mov ecx, esi
mov eax, edi
call fcn.004129f0
sub ebx, eax
add esp, 4
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x10], ebx
sbb ecx, ecx
inc ecx
cmp ebx, 0x40000
sbb edx, edx
neg edx
test edx, ecx
je 0x415831
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
lea edx, [eax + ecx]
mov ecx, esi
call fcn.0043d980
cmp eax, 3
jb 0x415831
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
add edx, 2
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea ecx, [eax + esi]
xor edx, edx
cmp ecx, ebx
sete dl
cmp dword [esp + 0x54], eax
mov dword [esp + 0xc], eax
sbb eax, eax
neg eax
mov dword [esp + 0x30], 1
or edx, eax
je 0x415831
mov ecx, dword [esp + 0x60]
inc ecx
mov dword [edi + 0x18], ecx
mov eax, 1
jmp 0x41632a
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
mov dword [eax + ecx*4], edx
je 0x41597e
mov edi, edi
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x20]
cmp eax, dword [esp + 0x5c]
jb 0x41597e
mov edx, dword [esp + 0x68]
and edx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + edx*8]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jb 0x415887
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
lea edx, [eax + ecx]
add ecx, esi
mov dword [esp + 0x80], eax
call fcn.0043d980
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0xc]
jbe 0x41590d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
sub edx, ecx
cmp eax, edx
jbe 0x4158d1
lea edx, [eax + ecx]
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
sub ebx, ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + ecx*8 + 4], eax
add ebx, 2
mov dword [edx + ecx*8], ebx
inc ecx
mov dword [esp + 0x30], ecx
lea ecx, [eax + esi]
xor edx, edx
cmp ecx, dword [esp + 0x48]
mov ecx, 0x1000
sete dl
cmp ecx, eax
mov dword [esp + 0xc], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x41597e
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x2c]
cmp dl, byte [eax + esi]
jae 0x415941
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov dword [esp + 0x50], eax
cmp ecx, dword [esp + 0x40]
jbe 0x41596c
mov eax, dword [esp + 0x44]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x415959
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
mov dword [esp + 0x4c], eax
cmp ecx, dword [esp + 0x40]
jbe 0x415976
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x20], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jne 0x415850
jmp 0x41597e
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ecx
jmp 0x41597e
lea edx, [esp + 0x68]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [eax], 0
add edx, 0xfffffff8
mov dword [ecx], 0
mov dword [edi + 0x18], edx
mov eax, dword [esp + 0x30]
jmp 0x41632a
mov eax, dword [edi + 0x88]
mov dword [esp + 0x18], eax
cmp eax, 0xfff
jb 0x4159be
mov dword [esp + 0x18], 0xfff
mov ecx, dword [edi + 4]
mov eax, esi
sub eax, ecx
push 0xcf1bbcdc
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 4]
push 0xbb000000
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push ecx
push eax
call fcn.004a1fa0
mov ecx, 0x40
sub ecx, dword [edi + 0x7c]
call fcn.004b6290
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edi + 0x78]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
dec ecx
mov edx, 1
shl edx, cl
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x4c], eax
dec edx
xor eax, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
cmp edx, ebx
jae 0x415a33
mov eax, ebx
sub eax, edx
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x40], eax
mov eax, 1
shl eax, cl
mov ecx, ebx
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x10]
sub ecx, eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x80], ecx
jbe 0x415a64
mov eax, ebx
sub eax, ecx
cmp dword [edi + 0x14], 0
je 0x415a6d
mov eax, dword [edi + 0x10]
mov dword [esp + 0x50], eax
test eax, eax
jne 0x415a7d
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x4c]
and edx, ebx
lea eax, [ecx + edx*8]
mov ecx, dword [edi + 0x80]
mov dword [esp + 0x30], eax
add eax, 4
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x84]
dec ecx
lea edx, [ebx + 9]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
lea edx, [ecx + 3]
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp ecx, edx
jae 0x415b89
sub ebx, dword [edi + 0xc]
mov eax, ecx
mov dword [esp + 0x68], ebx
jmp 0x415ae4
mov ebx, dword [esp + 0x68]
cmp eax, 3
jne 0x415af3
mov ecx, dword [esp + 0x94]
dec ecx
jmp 0x415afa
mov ecx, dword [esp + eax*4 + 0x94]
lea eax, [ecx - 1]
cmp eax, ebx
jae 0x415b69
push 4
mov eax, esi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + esi]
jne 0x415b69
mov ebx, dword [esp + 0x48]
lea edx, [ecx + esi + 4]
lea ecx, [esi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x34]
jbe 0x415b69
mov ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov dword [edx + ecx*8], ebx
inc ecx
xor edx, edx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
sete dl
cmp dword [esp + 0x18], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x416326
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc eax
add ecx, 3
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x415ae0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx + ecx*4], ebx
test eax, eax
je 0x415cd6
lea esp, [esp]
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x20]
cmp eax, dword [esp + 0x50]
jb 0x415cd6
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x4c]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
cmp ecx, eax
jb 0x415bd7
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + ecx]
add ecx, esi
mov dword [esp + 0x68], eax
call fcn.0043d980
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x34]
jbe 0x415c5a
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
sub edx, ecx
cmp eax, edx
jbe 0x415c1e
lea edx, [eax + ecx]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
sub ebx, ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + ecx*8 + 4], eax
add ebx, 2
mov dword [edx + ecx*8], ebx
inc ecx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
xor edx, edx
cmp ecx, dword [esp + 0x48]
mov ecx, 0x1000
sete dl
cmp ecx, eax
mov dword [esp + 0x34], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x415cd6
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x2c]
cmp dl, byte [eax + esi]
jae 0x415c8b
mov edx, dword [esp + 0x30]
mov dword [edx], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x40]
jbe 0x415cbd
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x30], eax
jmp 0x415ca3
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x40]
jbe 0x415cce
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x20], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jne 0x415ba0
mov edx, dword [esp + 0x5c]
jmp 0x41630c
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ecx
jmp 0x41630c
lea edx, [esp + 0x38]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x5c]
jmp 0x41630c
mov eax, dword [edi + 0x88]
mov dword [esp + 0x18], eax
cmp eax, 0xfff
jb 0x415cf8
mov dword [esp + 0x18], 0xfff
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, esi
sub eax, ecx
mov ecx, dword [edi + 0x20]
push 0xcf1bbcdc
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 4]
push 0xbf9b0000
mov dword [esp + 0x24], eax
mov eax, dword [esi]
push ecx
push eax
call fcn.004a1fa0
mov ecx, 0x40
sub ecx, dword [edi + 0x7c]
call fcn.004b6290
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [edx + eax*4]
dec ecx
mov edx, 1
shl edx, cl
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x44], eax
dec edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x54], eax
cmp edx, ebx
jae 0x415d70
mov eax, ebx
sub eax, edx
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x40], eax
mov eax, 1
shl eax, cl
mov ecx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x10]
sub ecx, eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x70], ecx
jbe 0x415d9b
mov eax, ebx
sub eax, ecx
cmp dword [edi + 0x14], 0
je 0x415da4
mov eax, dword [edi + 0x10]
mov dword [esp + 0x50], eax
test eax, eax
jne 0x415db4
mov dword [esp + 0x50], 1
mov eax, dword [esp + 0x4c]
and edx, ebx
lea eax, [eax + edx*8]
mov dword [esp + 0x30], eax
add eax, 4
lea ecx, [ebx + 9]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0x80]
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x84]
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 3]
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp ecx, edx
jae 0x415ebb
sub ebx, dword [edi + 0xc]
mov eax, ecx
mov dword [esp + 0x38], ebx
jmp 0x415e16
mov ebx, dword [esp + 0x38]
cmp eax, 3
jne 0x415e25
mov ecx, dword [esp + 0x94]
dec ecx
jmp 0x415e2c
mov ecx, dword [esp + eax*4 + 0x94]
lea edx, [ecx - 1]
cmp edx, ebx
jae 0x415e9b
push 4
mov eax, esi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + esi]
jne 0x415e9b
mov ebx, dword [esp + 0x48]
lea edx, [ecx + esi + 4]
lea ecx, [esi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x34]
jbe 0x415e9b
mov ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov dword [edx + ecx*8], ebx
inc ecx
xor edx, edx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
sete dl
cmp dword [esp + 0x18], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x416326
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc eax
add ecx, 3
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x415e12
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x24]
mov dword [edx + ecx*4], ebx
test eax, eax
je 0x415cd6
mov edi, edi
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x20]
cmp eax, dword [esp + 0x50]
jb 0x415cd6
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
cmp ecx, eax
jb 0x415f0a
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + ecx]
add ecx, esi
mov dword [esp + 0x38], eax
call fcn.0043d980
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x34]
jbe 0x415f91
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
sub edx, ecx
cmp eax, edx
jbe 0x415f51
lea edx, [eax + ecx]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
sub ebx, ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + ecx*8 + 4], eax
add ebx, 2
mov dword [edx + ecx*8], ebx
inc ecx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
xor edx, edx
cmp ecx, dword [esp + 0x48]
mov ecx, 0x1000
sete dl
cmp ecx, eax
mov dword [esp + 0x34], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x415cd6
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x2c]
cmp dl, byte [eax + esi]
jae 0x415fc6
mov edx, dword [esp + 0x30]
mov dword [edx], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x40]
jbe 0x415cbd
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x30], eax
jmp 0x415fe2
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x40]
jbe 0x415cce
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x20], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jne 0x415ed0
mov edx, dword [esp + 0x5c]
jmp 0x41630c
mov eax, dword [edi + 0x88]
mov dword [esp + 0x18], eax
cmp eax, 0xfff
jb 0x416015
mov dword [esp + 0x18], 0xfff
mov ecx, dword [edi + 4]
mov edx, dword [esi]
mov ebx, dword [edi + 0x20]
imul edx, edx, 0x9e3779b1
mov dword [esp + 0x54], ecx
mov eax, esi
sub eax, ecx
mov ecx, dword [edi + 0x7c]
mov dword [esp + 0x38], ecx
mov ecx, 0x20
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
shr edx, cl
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + edx*4]
mov dword [esp + 0x2c], edx
dec ecx
mov edx, 1
shl edx, cl
xor ecx, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x5c], ecx
dec edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], ecx
cmp edx, eax
jae 0x41607c
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x74]
mov ebx, 1
shl ebx, cl
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x38], ebx
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x70], ebx
jbe 0x4160a7
mov ecx, eax
sub ecx, ebx
cmp dword [edi + 0x14], 0
je 0x4160b0
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4160c0
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x50]
and edx, eax
lea ecx, [ecx + edx*8]
mov dword [esp + 0x30], ecx
add ecx, 4
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x80]
lea edx, [eax + 9]
mov dword [esp + 0x40], edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x84]
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
lea ebx, [ecx + 3]
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jae 0x4161c9
sub eax, dword [edi + 0xc]
mov dword [esp + 0x38], eax
jmp 0x416124
mov eax, dword [esp + 0x38]
cmp ecx, 3
jne 0x416133
mov ecx, dword [esp + 0x94]
dec ecx
jmp 0x41613a
mov ecx, dword [esp + ecx*4 + 0x94]
lea edx, [ecx - 1]
cmp edx, eax
jae 0x4161a9
push 4
mov eax, esi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + esi]
jne 0x4161a9
mov ebx, dword [esp + 0x48]
lea edx, [ecx + esi + 4]
lea ecx, [esi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x34]
jbe 0x4161a9
mov ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov dword [edx + ecx*8], ebx
inc ecx
xor edx, edx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
sete dl
cmp dword [esp + 0x18], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x416326
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc ecx
add eax, 3
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x416120
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x80]
mov dword [ebx + ecx*4], eax
test edx, edx
je 0x416308
nop
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jb 0x416308
mov edx, dword [esp + 0x10]
and edx, eax
mov eax, dword [esp + 0x50]
lea ecx, [eax + edx*8]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
cmp ecx, eax
jb 0x416217
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + ecx]
add ecx, esi
mov dword [esp + 0x38], eax
call fcn.0043d980
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x34]
jbe 0x41629a
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
sub edx, ecx
cmp eax, edx
jbe 0x41625e
lea edx, [eax + ecx]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
sub ebx, ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + ecx*8 + 4], eax
add ebx, 2
mov dword [edx + ecx*8], ebx
inc ecx
mov dword [esp + 0x60], ecx
lea ecx, [eax + esi]
xor edx, edx
cmp ecx, dword [esp + 0x48]
mov ecx, 0x1000
sete dl
cmp ecx, eax
mov dword [esp + 0x34], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x416308
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x2c]
cmp dl, byte [eax + esi]
jae 0x4162cb
mov edx, dword [esp + 0x30]
mov dword [edx], ecx
mov dword [esp + 0x5c], eax
cmp ecx, dword [esp + 0x1c]
jbe 0x4162f6
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x30], eax
jmp 0x4162e3
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x1c]
jbe 0x416300
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x20], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jne 0x4161e0
jmp 0x416308
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ecx
jmp 0x416308
lea edx, [esp + 0x38]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [eax], 0
add edx, 0xfffffff8
mov dword [ecx], 0
mov dword [edi + 0x18], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x41633f
inc esi
mov dword [esp + 0x8c], esi
jmp 0x417aa5
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x7c]
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ecx
mov edx, 2
mov eax, ebx
mov dword [edi + 8], 0
mov dword [edi + 0xc], ebx
call fcn.00412810
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [edi], eax
mov eax, dword [esi + ecx*8 - 4]
cmp eax, dword [esp + 0xa8]
jbe 0x4163be
mov edx, eax
mov eax, dword [esp + 0x3c]
mov eax, dword [esi + eax*8 - 8]
mov ecx, ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xb4], eax
xor ebx, ebx
jmp 0x4177dd
mov esi, dword [esp + 0x7c]
mov edx, 2
xor eax, eax
call fcn.00412810
add eax, dword [edi]
mov ecx, dword [esp + 0x84]
mov esi, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], esi
cmp ecx, esi
jbe 0x4163ff
dec ecx
lea esi, [ecx + 1]
lea eax, [edi + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax], 0x40000000
add eax, 0x1c
dec ecx
jne 0x4163f3
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jbe 0x4165a0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], eax
cmp esi, eax
ja 0x41658d
mov ecx, dword [esp + 0x78]
lea eax, [esi*8]
sub eax, esi
lea eax, [ecx + eax*4 + 4]
mov ecx, 0x4ceeb0
lea ebx, [esi - 2]
dec ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
inc ecx
bsr edx, ecx
setne cl
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], edx
movzx edx, cl
mov ecx, dword [esp + 0x7c]
neg edx
sbb edx, edx
and edx, dword [esp + 0x18]
cmp dword [ecx + 0x38], 1
mov dword [esp + 0x18], 0
jne 0x4164b1
bsr ecx, ebx
mov dword [esp + 0x18], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x18]
mov edi, ebx
shl edi, 8
shr edi, cl
lea edx, [ecx + edx + 0x10]
shl edx, 8
add edi, edx
jmp 0x41655f
mov edi, ecx
mov ecx, dword [edi + 0xc]
mov ebx, dword [ecx + edx*4]
inc ebx
bsr ecx, ebx
mov dword [esp + 0x18], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x18]
shl ebx, 8
sub edx, ecx
shr ebx, cl
mov ecx, dword [esp + 0x14]
shl edx, 8
dec ecx
sub edx, ebx
add edx, dword [edi + 0x34]
cmp ecx, 0x7f
jbe 0x41650a
bsr ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], ecx
setne cl
movzx esi, cl
neg esi
sbb esi, esi
and esi, dword [esp + 0x18]
add esi, 0x24
jmp 0x416516
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
movzx esi, byte [ecx + esi]
mov ecx, dword [edi + 8]
mov ebx, dword [ecx + esi*4]
inc ebx
bsr ecx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x18]
shl ebx, 8
shr ebx, cl
shl ecx, 8
add ebx, ecx
mov ecx, dword [esi*4 + 0x4ced28]
mov esi, dword [esp + 0x1c]
shl ecx, 8
add ecx, dword [edi + 0x30]
sub ecx, ebx
mov ebx, dword [esp + 0x14]
lea edi, [ecx + edx + 0x33]
add edi, dword [esp + 0x70]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], esi
inc esi
mov dword [eax], edx
mov dword [eax + 8], ecx
mov dword [eax - 4], edi
inc ebx
add eax, 0x1c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebx
cmp esi, dword [esp + 0x68]
jbe 0x416453
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x3c]
jb 0x416412
lea eax, [esi - 1]
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], 1
cmp eax, 1
jb 0x417749
jmp 0x4165c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x8c]
lea edx, [eax*8]
sub edx, eax
lea edi, [eax + ecx]
mov eax, dword [esp + 0x78]
cmp dword [eax + edx*4 - 0x14], 0
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
jne 0x4165f3
mov eax, dword [eax - 0x10]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4165fb
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x7c]
push 2
lea ebx, [edx + ecx - 1]
push 1
mov ecx, esi
call fcn.00412770
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
add esp, 8
dec eax
mov edx, 2
call fcn.00412810
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx - 0x1c]
add ebx, dword [esp + 0x38]
mov edx, 2
sub ebx, eax
mov eax, dword [esp + 0x14]
call fcn.00412810
mov edx, dword [esp + 0x3c]
add eax, ebx
mov esi, edx
cmp eax, dword [edx]
jg 0x416667
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov dword [esi], eax
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4166b3
mov eax, dword [esp + 0x30]
xor edx, edx
sub eax, ebx
cmp dword [esi + 0xc], edx
lea ecx, [eax*8]
sete dl
sub ecx, eax
lea eax, [esp + 0xe8]
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [edx + ecx*4 + 0x10]
mov edx, dword [esi + 4]
call fcn.00412ca0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x4166c5
mov eax, dword [esi - 0xc]
mov ecx, dword [esi - 8]
mov edx, dword [esi - 4]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
cmp edi, dword [esp + 0xa4]
ja 0x417732
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x60]
je 0x417745
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [esp + 0x2c], ecx
test ebx, ebx
jne 0x4166fc
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x18], eax
jmp 0x416704
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x7c]
mov ebx, dword [ecx]
mov edx, 2
xor eax, eax
call fcn.00412810
add eax, ebx
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 4]
lea ecx, [esi + eax]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
cmp edi, ecx
jb 0x417732
mov ebx, dword [ebp + 8]
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x64], ecx
cmp esi, ecx
jae 0x416779
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esi + eax]
push edx
push ecx
mov ecx, dword [esp + 0x30]
mov eax, ebx
call fcn.00412a70
add esi, eax
add esp, 0xc
cmp esi, dword [esp + 0x64]
jb 0x416754
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
add eax, 0xfffffffd
mov dword [ebx + 0x18], edx
cmp eax, 4
ja case.0x416790.4
jmp dword [eax*4 + 0x417b00]
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x40], eax
cmp eax, 0xfff
jb 0x4167b0
mov dword [esp + 0x40], 0xfff
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
mov esi, edi
sub esi, eax
mov eax, dword [edi]
imul eax, eax, 0x9e3779b1
mov ecx, 0x20
sub ecx, dword [ebx + 0x7c]
mov dword [esp + 0x80], edx
shr eax, cl
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x88], eax
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
dec ecx
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], ecx
dec eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x68], edx
cmp eax, esi
jae 0x416819
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x74]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x38], edx
mov edx, esi
sub edx, ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x70], edx
jbe 0x416844
mov ecx, esi
sub ecx, edx
cmp dword [ebx + 0x14], 0
je 0x41684d
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x41685d
mov dword [esp + 0x5c], 1
mov ecx, dword [esp + 0x64]
and eax, esi
lea eax, [ecx + eax*8]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x54], eax
add eax, 4
mov dword [esp + 0x34], eax
mov eax, 1
shl eax, cl
lea edx, [esi + 9]
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 3]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x1c], eax
cmp eax, ecx
jae 0x416962
mov edx, esi
sub edx, dword [esp + 0x68]
mov dword [esp + 0x38], edx
jmp 0x4168c4
mov edx, dword [esp + 0x38]
cmp eax, 3
jne 0x4168d3
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
dec ecx
jmp 0x4168db
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + eax*4 + 0x10]
lea eax, [ecx - 1]
cmp eax, edx
jae 0x41694f
neg ecx
mov edx, dword [ecx + edi]
push 3
mov eax, edi
shl edx, 8
call fcn.004129e0
add esp, 4
cmp eax, edx
jne 0x41694f
mov ebx, dword [esp + 0x48]
lea edx, [ecx + edi + 3]
lea ecx, [edi + 3]
call fcn.0043d980
add eax, 3
cmp eax, dword [esp + 0x20]
jbe 0x41694f
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov dword [edx + ecx*8], ebx
inc ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
sete dl
cmp dword [esp + 0x40], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x416b52
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x70]
jb 0x4168c0
cmp dword [esp + 0x20], 3
jae 0x4169fe
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xac]
push ecx
mov ecx, edi
call fcn.004129f0
add esp, 4
mov ecx, esi
sub ecx, eax
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
sbb edx, edx
inc edx
cmp ecx, 0x40000
sbb ecx, ecx
neg ecx
test ecx, edx
je 0x4169fe
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x48]
add edx, eax
mov ecx, edi
call fcn.0043d980
cmp eax, 3
jb 0x4169fe
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x6c]
add edx, 2
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea ecx, [eax + edi]
xor edx, edx
cmp ecx, ebx
sete dl
cmp dword [esp + 0x40], eax
mov dword [esp + 0x20], eax
sbb eax, eax
neg eax
mov dword [esp + 0xc], 1
or edx, eax
je 0x4169fe
mov ecx, dword [ebp + 8]
inc esi
mov eax, 1
mov dword [ecx + 0x18], esi
mov ecx, eax
mov dword [esp + 0xc], ecx
jmp 0x4174d1
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov dword [edx + eax*4], esi
je 0x416b31
mov ebx, dword [esp + 0x48]
mov edi, edi
mov eax, dword [esp + 0x28]
dec dword [esp + 0x14]
cmp eax, dword [esp + 0x5c]
jb 0x416b31
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], ecx
jb 0x416a53
mov esi, ecx
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x28]
lea ecx, [esi + edi]
lea edx, [eax + esi]
mov dword [esp + 0x88], eax
call fcn.0043d980
add esi, eax
cmp esi, dword [esp + 0x20]
jbe 0x416ac4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub ecx, eax
cmp esi, ecx
jbe 0x416a8a
lea edx, [esi + eax]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov eax, dword [esp + 0xc]
add edx, 2
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [esp + 0xc], eax
xor ecx, ecx
lea eax, [esi + edi]
cmp eax, ebx
sete cl
mov edx, 0x1000
cmp edx, esi
sbb eax, eax
neg eax
mov dword [esp + 0x20], esi
or ecx, eax
jne 0x416b31
mov ecx, dword [esp + 0x88]
mov dl, byte [ecx + esi]
mov eax, dword [esp + 0x28]
cmp dl, byte [esi + edi]
jae 0x416af4
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov dword [esp + 0x44], esi
cmp eax, dword [esp + 0x50]
jbe 0x416b1f
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x54], eax
jmp 0x416b0c
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov dword [esp + 0x4c], esi
cmp eax, dword [esp + 0x50]
jbe 0x416b29
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], 0
mov edx, dword [eax]
mov dword [esp + 0x28], edx
jne 0x416a20
jmp 0x416b31
lea eax, [esp + 0x58]
mov dword [esp + 0x54], eax
jmp 0x416b31
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov dword [edx], 0
mov edx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [eax], 0
mov dword [edx + 0x18], ecx
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], ecx
jmp 0x4174d1
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], eax
cmp eax, 0xfff
jb 0x416b7a
mov dword [esp + 0x10], 0xfff
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 4]
push 0xcf1bbcdc
mov dword [esp + 0x6c], ecx
mov eax, edi
sub eax, ecx
mov ecx, dword [ebx + 0x20]
push 0xbb000000
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi]
push edx
mov esi, 0x40
sub esi, dword [ebx + 0x7c]
push ecx
mov dword [esp + 0x24], eax
call fcn.004a1fa0
mov ecx, esi
call fcn.004b6290
mov edx, dword [esp + 0x64]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0xc], eax
dec ecx
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x14]
dec eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], ecx
cmp eax, edx
jae 0x416bfb
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x74]
mov esi, 1
shl esi, cl
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x58], esi
mov esi, edx
sub esi, ecx
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x74], esi
jbe 0x416c26
mov ecx, edx
sub ecx, esi
cmp dword [ebx + 0x14], 0
je 0x416c2f
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x416c3f
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x5c]
and eax, edx
lea eax, [ecx + eax*8]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x44], eax
add eax, 4
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
add edx, 9
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 3]
mov dword [esp + 0x74], ecx
mov esi, eax
cmp eax, ecx
jae 0x416d35
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
cmp esi, 3
jne 0x416cb2
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x10]
dec ecx
jmp 0x416cba
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4 + 0x10]
lea edx, [ecx - 1]
cmp edx, dword [esp + 0x58]
jae 0x416d2a
push 4
mov eax, edi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + edi]
jne 0x416d2a
mov ebx, dword [esp + 0x48]
lea edx, [ecx + edi + 4]
lea ecx, [edi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x54]
jbe 0x416d2a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov ebx, esi
sub ebx, dword [esp + 0x2c]
inc ecx
mov dword [edx + ecx*8 - 8], ebx
xor edx, edx
mov dword [esp + 0x20], ecx
lea ecx, [edi + eax]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
sete dl
cmp dword [esp + 0x10], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x4174c7
inc esi
cmp esi, dword [esp + 0x74]
jb 0x416ca3
cmp dword [esp + 0x34], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], ecx
je 0x416e7d
nop
mov eax, dword [esp + 0xc]
dec dword [esp + 0x34]
cmp eax, dword [esp + 0x40]
jb 0x416e7d
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x24], ecx
jb 0x416d83
mov esi, ecx
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + esi]
lea ecx, [edi + esi]
mov dword [esp + 0x58], eax
call fcn.0043d980
add esi, eax
cmp esi, dword [esp + 0x54]
jbe 0x416df9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
sub ecx, eax
cmp esi, ecx
jbe 0x416dbb
lea edx, [eax + esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov eax, dword [esp + 0x20]
add edx, 2
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [esp + 0x20], eax
xor ecx, ecx
lea eax, [edi + esi]
cmp eax, ebx
sete cl
mov edx, 0x1000
cmp edx, esi
sbb eax, eax
neg eax
mov dword [esp + 0x54], esi
or ecx, eax
jne 0x416e7d
mov ecx, dword [esp + 0x58]
mov dl, byte [ecx + esi]
mov eax, dword [esp + 0xc]
cmp dl, byte [edi + esi]
jae 0x416e26
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov dword [esp + 0x24], esi
cmp eax, dword [esp + 0x4c]
jbe 0x416e60
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x44], eax
jmp 0x416e3e
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp + 0x50], esi
cmp eax, dword [esp + 0x4c]
jbe 0x416e75
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x34], 0
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jne 0x416d50
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
jmp 0x4174b2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov dword [esp + 0x44], eax
jmp 0x4174b2
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
jmp 0x4174b2
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], eax
cmp eax, 0xfff
jb 0x416ea7
mov dword [esp + 0x10], 0xfff
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 4]
push 0xcf1bbcdc
mov dword [esp + 0x6c], ecx
mov eax, edi
sub eax, ecx
mov ecx, dword [ebx + 0x20]
push 0xbf9b0000
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi]
push edx
mov esi, 0x40
sub esi, dword [ebx + 0x7c]
push ecx
mov dword [esp + 0x64], eax
call fcn.004a1fa0
mov ecx, esi
call fcn.004b6290
mov edx, dword [esp + 0x64]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0xc], eax
dec ecx
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x54]
dec eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], ecx
cmp eax, edx
jae 0x416f28
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x74]
mov esi, 1
shl esi, cl
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x58], esi
mov esi, edx
sub esi, ecx
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x74], esi
jbe 0x416f53
mov ecx, edx
sub ecx, esi
cmp dword [ebx + 0x14], 0
je 0x416f5c
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x416f6c
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x5c]
and eax, edx
lea eax, [ecx + eax*8]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x28], eax
add eax, 4
mov dword [esp + 0x34], eax
mov eax, 1
shl eax, cl
add edx, 9
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 3]
mov dword [esp + 0x74], ecx
mov esi, eax
cmp eax, ecx
jae 0x417062
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
cmp esi, 3
jne 0x416fdf
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x10]
dec ecx
jmp 0x416fe7
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4 + 0x10]
lea edx, [ecx - 1]
cmp edx, dword [esp + 0x58]
jae 0x417057
push 4
mov eax, edi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + edi]
jne 0x417057
mov ebx, dword [esp + 0x48]
lea edx, [ecx + edi + 4]
lea ecx, [edi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x44]
jbe 0x417057
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov ebx, esi
sub ebx, dword [esp + 0x2c]
inc ecx
mov dword [edx + ecx*8 - 8], ebx
xor edx, edx
mov dword [esp + 0x20], ecx
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
sete dl
cmp dword [esp + 0x10], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x4174c7
inc esi
cmp esi, dword [esp + 0x74]
jb 0x416fd0
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], ecx
je 0x4171ad
lea esp, [esp]
mov eax, dword [esp + 0xc]
dec dword [esp + 0x14]
cmp eax, dword [esp + 0x40]
jb 0x4171ad
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x24], ecx
jb 0x4170b3
mov esi, ecx
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + esi]
lea ecx, [esi + edi]
mov dword [esp + 0x58], eax
call fcn.0043d980
add esi, eax
cmp esi, dword [esp + 0x44]
jbe 0x417129
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
sub ecx, eax
cmp esi, ecx
jbe 0x4170eb
lea edx, [esi + eax]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov eax, dword [esp + 0x20]
add edx, 2
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [esp + 0x20], eax
xor ecx, ecx
lea eax, [esi + edi]
cmp eax, ebx
sete cl
mov edx, 0x1000
cmp edx, esi
sbb eax, eax
neg eax
mov dword [esp + 0x44], esi
or ecx, eax
jne 0x4171ad
mov ecx, dword [esp + 0x58]
mov dl, byte [ecx + esi]
mov eax, dword [esp + 0xc]
cmp dl, byte [esi + edi]
jae 0x417156
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp + 0x24], esi
cmp eax, dword [esp + 0x4c]
jbe 0x417190
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x28], eax
jmp 0x41716e
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov dword [esp + 0x50], esi
cmp eax, dword [esp + 0x4c]
jbe 0x4171a5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], 0
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jne 0x417080
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
jmp 0x4174b2
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov dword [esp + 0x28], eax
jmp 0x4174b2
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
jmp 0x4174b2
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], eax
cmp eax, 0xfff
jb 0x4171d7
mov dword [esp + 0x10], 0xfff
mov edx, dword [edi]
mov ecx, dword [ebx + 4]
imul edx, edx, 0x9e3779b1
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x80], ecx
mov eax, edi
sub eax, ecx
mov ecx, 0x20
sub ecx, dword [ebx + 0x7c]
mov dword [esp + 0x38], esi
shr edx, cl
mov dword [esp + 0x24], eax
mov ecx, dword [esi + edx*4]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x5c], edx
dec ecx
mov edx, 1
shl edx, cl
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ecx
dec edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x88], esi
cmp edx, eax
jae 0x417240
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x74]
mov esi, 1
shl esi, cl
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x58], esi
mov esi, eax
sub esi, ecx
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x74], esi
jbe 0x41726b
mov ecx, eax
sub ecx, esi
cmp dword [ebx + 0x14], 0
je 0x417274
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x64], ecx
test ecx, ecx
jne 0x417284
mov dword [esp + 0x64], 1
mov ecx, dword [esp + 0x5c]
and edx, eax
lea ecx, [ecx + edx*8]
add eax, 9
mov dword [esp + 0x34], ecx
add ecx, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x80]
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 3]
mov dword [esp + 0x74], ecx
mov esi, eax
cmp eax, ecx
jae 0x41737a
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
cmp esi, 3
jne 0x4172f7
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x10]
dec ecx
jmp 0x4172ff
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4 + 0x10]
lea edx, [ecx - 1]
cmp edx, dword [esp + 0x58]
jae 0x41736f
push 4
mov eax, edi
neg ecx
call fcn.004129e0
add esp, 4
cmp eax, dword [ecx + edi]
jne 0x41736f
mov ebx, dword [esp + 0x48]
lea edx, [ecx + edi + 4]
lea ecx, [edi + 4]
call fcn.0043d980
add eax, 4
cmp eax, dword [esp + 0x44]
jbe 0x41736f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [edx + ecx*8 + 4], eax
mov ebx, esi
sub ebx, dword [esp + 0x2c]
inc ecx
mov dword [edx + ecx*8 - 8], ebx
xor edx, edx
mov dword [esp + 0x20], ecx
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
sete dl
cmp dword [esp + 0x10], eax
sbb eax, eax
neg eax
or edx, eax
jne 0x4174c7
inc esi
cmp esi, dword [esp + 0x74]
jb 0x4172e8
cmp dword [esp + 0x54], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
mov dword [edx + eax*4], ecx
je 0x4174a6
mov eax, dword [esp + 0xc]
dec dword [esp + 0x54]
cmp eax, dword [esp + 0x64]
jb 0x4174a6
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
and ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x50], ecx
jb 0x4173c7
mov esi, ecx
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
lea edx, [eax + esi]
lea ecx, [esi + edi]
mov dword [esp + 0x58], eax
call fcn.0043d980
add esi, eax
cmp esi, dword [esp + 0x44]
jbe 0x41743c
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
sub ecx, eax
cmp esi, ecx
jbe 0x417402
lea edx, [esi + eax]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov eax, dword [esp + 0x20]
add edx, 2
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [esp + 0x20], eax
xor ecx, ecx
lea eax, [esi + edi]
cmp eax, ebx
sete cl
mov edx, 0x1000
cmp edx, esi
sbb eax, eax
neg eax
mov dword [esp + 0x44], esi
or ecx, eax
jne 0x4174a6
mov ecx, dword [esp + 0x58]
mov dl, byte [ecx + esi]
mov eax, dword [esp + 0xc]
cmp dl, byte [esi + edi]
jae 0x417469
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov dword [esp + 0x50], esi
cmp eax, dword [esp + 0x1c]
jbe 0x417494
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x34], eax
jmp 0x417481
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [esp + 0x4c], esi
cmp eax, dword [esp + 0x1c]
jbe 0x41749e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x54], 0
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jne 0x417394
jmp 0x4174a6
lea eax, [esp + 0x58]
mov dword [esp + 0x34], eax
jmp 0x4174a6
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov dword [edx], 0
mov edx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [eax], 0
mov dword [edx + 0x18], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, eax
test ecx, ecx
je 0x417732
mov edi, dword [esp + 0x6c]
mov eax, dword [edi + ecx*8 - 4]
mov esi, dword [esp + 0x30]
cmp eax, dword [esp + 0xa8]
ja 0x417786
lea edx, [eax + esi]
cmp edx, 0x1000
jae 0x417786
mov dword [esp + 0x4c], 0
test ecx, ecx
je 0x417732
lea ecx, [edi - 4]
mov dword [esp + 0x1c], ecx
jmp 0x417524
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x4c], 0
mov eax, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
jbe 0x41753a
mov ecx, dword [ecx]
inc ecx
jmp 0x417541
mov ecx, dword [esp + 0x84]
mov ebx, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], ebx
cmp eax, ecx
jb 0x41771a
mov ecx, dword [esp + 0x30]
lea edx, [eax + 0x4ceead]
lea edi, [eax + ecx]
lea eax, [edi*8]
sub eax, edi
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x78]
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
mov eax, 0xfffffffe
sub eax, ecx
mov dword [esp + 0x58], eax
mov eax, 0xfffffffd
sub eax, ecx
mov dword [esp + 0x74], eax
mov edi, edi
mov eax, dword [esp + 0x64]
inc eax
bsr ecx, eax
setne dl
movzx eax, dl
neg eax
sbb eax, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x10], ecx
and eax, ecx
mov ecx, dword [esp + 0x7c]
cmp dword [ecx + 0x38], 1
mov dword [esp + 0x10], 0
jne 0x4175f0
mov edx, dword [esp + 0x58]
add edx, edi
bsr ecx, edx
mov dword [esp + 0x10], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x10]
shl edx, 8
shr edx, cl
lea esi, [eax + ecx + 0x10]
shl esi, 8
add esi, edx
jmp 0x41769a
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + eax*4]
inc edx
bsr ecx, edx
mov dword [esp + 0x10], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x10]
shl edx, 8
sub eax, ecx
shl eax, 8
shr edx, cl
mov esi, eax
mov eax, dword [esp + 0x74]
add eax, edi
sub esi, edx
add esi, dword [ebx + 0x34]
cmp eax, 0x7f
jbe 0x41764a
bsr eax, eax
setne cl
movzx ebx, cl
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x10], eax
add ebx, 0x24
jmp 0x417651
mov edx, dword [esp + 0x50]
movzx ebx, byte [edx]
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + ebx*4]
inc edx
bsr ecx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x10], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x10]
shl edx, 8
shr edx, cl
shl ecx, 8
add edx, ecx
mov ecx, dword [ebx*4 + 0x4ced28]
mov ebx, dword [esp + 0x40]
shl ecx, 8
add ecx, dword [eax + 0x30]
sub ecx, edx
lea esi, [ecx + esi + 0x33]
mov edx, dword [esp + 0x60]
add esi, dword [esp + 0xa0]
cmp edi, edx
ja 0x4176b5
mov eax, dword [esp + 0x24]
cmp esi, dword [eax]
jge 0x417701
cmp edx, edi
jae 0x4176de
lea eax, [edx + 1]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x78]
lea ecx, [eax + ecx*4]
mov eax, edi
sub eax, edx
add edx, eax
mov dword [esp + 0x60], edx
mov dword [ecx], 0x40000000
add ecx, 0x1c
dec eax
jne 0x4176d2
mov edx, dword [esp + 0x78]
lea ecx, [edi*8]
sub ecx, edi
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], esi
sub dword [esp + 0x24], 0x1c
dec dword [esp + 0x50]
dec ebx
dec edi
mov dword [esp + 0x40], ebx
cmp ebx, dword [esp + 0x5c]
jae 0x417590
mov eax, dword [esp + 0x4c]
add dword [esp + 0x1c], 8
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0xc]
jb 0x417520
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x60]
jbe 0x4165c0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
lea ecx, [eax*8]
sub ecx, eax
lea esi, [edx + ecx*4]
mov ecx, 7
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
lea esi, [edx + ecx]
cmp eax, esi
jbe 0x4177d1
sub eax, edx
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x4177d9
mov edx, eax
mov eax, dword [edi + ecx*8 - 8]
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb4], eax
lea eax, [esi*8]
sub eax, esi
cmp dword [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
jne 0x4177c1
mov eax, dword [eax + 0xc]
jmp 0x4177c3
xor eax, eax
sub esi, eax
mov dword [esp + 0x30], esi
cmp esi, 0x1000
jbe 0x4177d9
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x30]
test edx, edx
mov edx, dword [esp + 0x78]
je 0x417812
xor eax, eax
test ecx, ecx
sete al
lea ecx, [ebx*8]
sub ecx, ebx
lea ecx, [edx + ecx*4 + 0x10]
mov edx, dword [esp + 0xb4]
push eax
lea eax, [esp + 0xfc]
call fcn.00412ca0
add esp, 4
jmp 0x41781f
lea ecx, [ebx*8]
sub ecx, ebx
lea eax, [edx + ecx*4 + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x94], ecx
lea ecx, [ebx + 1]
mov dword [esp + 0x98], edx
lea edx, [ecx*8]
sub edx, ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
lea edx, [ecx + edx*4]
mov ecx, 7
lea esi, [esp + 0xb0]
mov edi, edx
mov dword [esp + 0x9c], eax
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x4178ce
mov dword [esp + 0x10], edx
jmp 0x417880
mov ecx, dword [esp + 0x78]
dec dword [esp + 0x18]
lea edx, [eax*8]
sub edx, eax
lea edx, [ecx + edx*4]
mov ecx, 7
mov esi, edx
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0xd4]
mov edi, dword [esp + 0x10]
add ebx, dword [esp + 0xd8]
sub edi, 0x1c
mov ecx, 7
mov esi, edx
mov dword [esp + 0x10], edi
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
jbe 0x4178ce
sub eax, ebx
jne 0x417880
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xa0]
cmp edx, ecx
ja 0x417a8d
mov esi, dword [esp + 0x78]
lea eax, [edx*8]
sub eax, edx
sub ecx, edx
lea eax, [esi + eax*4 + 8]
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax - 4]
lea edx, [esi + ebx]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], edx
test esi, esi
jne 0x41792a
add ebx, dword [esp + 0x90]
mov dword [esp + 0x8c], ebx
jmp 0x417a7c
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x7c]
push esi
push edx
mov ecx, ebx
call fcn.00412900
mov edx, dword [ebp + 0xc]
add esi, 0xfffffffd
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x50]
add esi, 0xffffffe0
lea eax, [ebx + edi]
add esp, 8
cmp eax, esi
ja 0x4179f2
mov ecx, dword [edi]
mov eax, dword [edx + 0xc]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
cmp ebx, 0x10
jbe 0x417a0d
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x10]
lea esi, [eax + ebx]
mov dword [esp + 0x10], esi
mov esi, dword [ecx]
mov dword [eax + 0x10], esi
mov esi, dword [ecx + 4]
mov dword [eax + 0x14], esi
mov esi, dword [ecx + 8]
mov dword [eax + 0x18], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 0x1c], esi
add eax, 0x20
add ecx, 0x10
cmp eax, dword [esp + 0x10]
jae 0x417a0d
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 0xc], esi
mov esi, dword [ecx + 0x10]
mov dword [eax + 0x10], esi
mov esi, dword [ecx + 0x14]
mov dword [eax + 0x14], esi
mov esi, dword [ecx + 0x18]
mov dword [eax + 0x18], esi
mov esi, dword [ecx + 0x1c]
mov dword [eax + 0x1c], esi
add eax, 0x20
add ecx, 0x20
cmp eax, dword [esp + 0x10]
jb 0x4179b6
jmp 0x417a0d
mov ecx, dword [esp + 0x90]
mov edi, eax
mov eax, dword [edx + 0xc]
call fcn.00411f50
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x90]
add dword [edx + 0xc], ebx
cmp ebx, 0xffff
jbe 0x417a2a
mov eax, dword [edx + 4]
sub eax, dword [edx]
mov dword [edx + 0x24], 1
sar eax, 3
mov dword [edx + 0x28], eax
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x64]
mov word [ecx + 4], bx
mov ecx, dword [edx + 4]
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0xa0]
cmp eax, 0xffff
jbe 0x417a5b
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
mov dword [edx + 0x24], 2
sar ecx, 3
mov dword [edx + 0x28], ecx
mov ecx, dword [edx + 4]
mov word [ecx + 6], ax
add dword [edx + 4], 8
add edi, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
add eax, 0x1c
dec dword [esp + 0x24]
mov dword [esp + 0x18], eax
jne 0x417900
mov eax, dword [esp + 0x7c]
mov edi, 2
call fcn.004120b0
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x8c]
cmp esi, dword [esp + 0xa4]
jb 0x415542
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov esi, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov dword [eax + 4], ecx
mov dword [eax + 0x24], 0
mov eax, dword [ebp + 0x14]
sub dword [edi + 4], eax
add dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], eax
call fcn.00415410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret