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

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x194]
movsx ecx, word [edi + 0xc]
mov edx, dword [edi + 0x8a4]
mov esi, dword [edi + 0x7c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x8c]
mov ebp, ecx
shr ebp, 8
inc ebp
mov dword [esp + 0x38], edx
xor edx, edx
mov eax, esi
div ebp
mov edx, dword [esp + 0x28]
movsx ebx, word [edi + 0xe]
mov ebp, edx
and ebp, 0x20
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x8b0]
mov dword [esp + 0x1c], eax
mov eax, ebp
neg eax
sbb eax, eax
and eax, 0x7f8000
add eax, 0x8000
cmp word [edi + 0xa], 0
mov dword [esp + 0x24], eax
je 0x41d2d0
test dl, dl
js 0x41d2d0
cmp word [edi + 8], 3
jge 0x41d2ca
lea edx, [eax*4]
mov dword [esp + 0x24], edx
jmp 0x41d2d0
add eax, eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x8c]
lea eax, [esi + edx]
cmp eax, ecx
jbe 0x41d2e9
sub ecx, esi
mov edx, ecx
mov dword [esp + 0x8c], edx
test edx, edx
jne 0x41d2f7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
test esi, esi
jne 0x41d33c
mov eax, edi
call fcn.0041cde0
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0x74]
mov ecx, dword [ecx + 0x70]
lea esi, [edi + 0x24]
call fcn.0041cd80
mov ecx, dword [esp + 0x84]
cmp dword [ecx + 0x98], 0
je 0x41d335
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x70]
lea esi, [edi + 0x50]
call fcn.0041cd80
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x54]
cmp byte [edi + eax*8 + 0x84], 0
jne 0x41d3a7
cmp dword [edi + 0x884], 0
jne 0x41d372
mov ecx, edi
call fcn.0041cf70
mov dword [edi + 0x888], eax
shl eax, 8
push eax
call fcn.004b7ec3
add esp, 4
mov dword [edi + 0x884], eax
mov ecx, dword [edi + 0x7c]
mov esi, dword [esp + 0x54]
mov dword [edi + esi*8 + 0x88], ecx
mov eax, dword [edi + 0x888]
imul eax, esi
add eax, dword [edi + 0x884]
push edi
call fcn.0041d010
mov edx, dword [esp + 0x90]
add esp, 4
mov byte [edi + esi*8 + 0x84], 1
mov eax, dword [edi + 0x8b4]
mov ecx, dword [edi + 0x8b8]
movzx esi, word [edi + 0xa]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x8bc]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x8c0]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x8c4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0x8c8]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
test si, si
je 0x41d400
test dword [esp + 0x28], 0xa000
je 0x41d421
mov dword [esp + 0x2c], 0xffffff00
jmp 0x41d421
test dword [esp + 0x28], 0x2000
je 0x41d421
mov eax, dword [esp + 0x28]
shr eax, 7
not eax
and eax, 0xffffff00
or eax, 0xfffffe00
mov dword [esp + 0x2c], eax
mov ecx, ebx
test ebp, ebp
je 0x41d43f
mov ebp, 0xff800000
sar ebp, cl
mov eax, 0x7fffff
mov dword [esp + 0x48], ebp
shl ebp, cl
mov dword [esp + 0x40], ebp
jmp 0x41d459
mov eax, 0xffff8000
sar eax, cl
mov dword [esp + 0x48], eax
shl eax, cl
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x40]
mov eax, 0x7fff
sar eax, cl
mov dword [esp + 0x3c], eax
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x44], eax
movzx eax, word [edi + 8]
cmp ax, 3
jne 0x41e722
cmp si, cx
jne 0x41da58
mov ebx, dword [esp + 0x28]
test bl, 1
je 0x41da58
mov dword [esp + 0x14], ecx
test bl, 2
je 0x41d5dd
test bl, 0x40
je 0x41d576
mov ebx, dword [esp + 0x88]
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
cmp eax, 0x80000000
je 0x41f253
mov ecx, dword [esp + 0x74]
add ecx, eax
add dword [esp + 0x70], ecx
mov esi, 4
cmp dword [edi + 0x48], esi
mov dword [esp + 0x74], ecx
jge 0x41d50f
lea esp, [esp]
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41d4f7
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
call edx
add esp, 4
mov eax, dword [edi + 0x30]
movzx edx, byte [eax]
mov ecx, dword [edi + 0x48]
shl edx, cl
add ecx, 8
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], edx
cmp ecx, esi
jl 0x41d4e0
mov ecx, dword [edi + 0x48]
cmp ecx, 0x20
mov eax, dword [edi + 0x3c]
jle 0x41d534
lea edx, [ecx - 4]
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x48], edx
movzx ebp, byte [ecx]
mov ecx, 8
sub cl, dl
shr ebp, cl
mov dword [edi + 0x3c], ebp
jmp 0x41d53e
add ecx, 0xfffffffc
shr dword [edi + 0x3c], 4
mov dword [edi + 0x48], ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
and eax, 0xf
shl edx, 4
add eax, edx
lea edx, [eax + ecx*2]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
inc eax
add edx, ecx
add ebx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41d4b0
jmp 0x41f253
mov ebp, dword [esp + 0x88]
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
cmp eax, 0x80000000
je 0x41f253
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*2]
add edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x70], eax
shl eax, cl
add ebp, 4
mov dword [esp + 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41d585
jmp 0x41f253
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
test bl, 0x10
je 0x41d884
cmp edx, ecx
jbe 0x41f253
mov eax, ebx
and eax, 0x400
mov dword [esp + 0x4c], eax
jmp 0x41d60a
mov eax, dword [esp + 0x4c]
mov esi, edi
test eax, eax
je 0x41d619
push 0
call fcn.0041f5c0
jmp 0x41d620
xor eax, eax
call fcn.0041fb60
mov esi, eax
cmp esi, 0x80000000
je 0x41f253
test dword [esp + 0x28], 0x8000
mov eax, dword [edi + 0x80]
lea ecx, [edi + 0x8cc]
mov dword [esp + 0x30], eax
je 0x41d6c3
test eax, eax
je 0x41d72e
mov ebx, dword [esp + 0x38]
jmp 0x41d660
mov ebp, dword [ecx + 8]
mov edx, dword [ecx + ebx*4 + 0x10]
dec dword [esp + 0x30]
mov eax, ebp
imul eax, edx
add eax, 0x100
sar eax, 9
add eax, esi
test edx, edx
je 0x41d6a7
test esi, esi
je 0x41d6a7
xor edx, esi
jl 0x41d697
lea edx, [ebp + 1]
mov dword [ecx + 8], edx
cmp ebp, 0x200
jne 0x41d6a7
dec edx
jmp 0x41d6a4
lea edx, [ebp - 1]
mov dword [ecx + 8], edx
cmp ebp, dword [esp + 0x2c]
jne 0x41d6a7
inc edx
mov dword [ecx + 8], edx
mov edx, dword [ecx]
add edx, ebx
and edx, 7
mov dword [ecx + edx*4 + 0x10], eax
add ecx, 0x60
cmp dword [esp + 0x30], 0
mov esi, eax
jne 0x41d660
jmp 0x41d732
test eax, eax
je 0x41d72e
mov ebx, dword [esp + 0x38]
jmp 0x41d6d0
mov ebp, dword [ecx + 8]
mov edx, dword [ecx + ebx*4 + 0x10]
dec dword [esp + 0x30]
mov eax, ebp
imul eax, edx
sub eax, 0xffffff80
sar eax, 8
add eax, esi
test edx, edx
je 0x41d715
test esi, esi
je 0x41d715
xor edx, esi
jl 0x41d705
lea edx, [ebp + 1]
mov dword [ecx + 8], edx
cmp ebp, 0x100
jne 0x41d715
dec edx
jmp 0x41d712
lea edx, [ebp - 1]
mov dword [ecx + 8], edx
cmp ebp, dword [esp + 0x2c]
jne 0x41d715
inc edx
mov dword [ecx + 8], edx
mov edx, dword [ecx]
add edx, ebx
and edx, 7
mov dword [ecx + edx*4 + 0x10], eax
add ecx, 0x60
cmp dword [esp + 0x30], 0
mov esi, eax
jne 0x41d6d0
jmp 0x41d732
mov ebx, dword [esp + 0x38]
inc ebx
and ebx, 7
test byte [esp + 0x28], 0x40
mov dword [esp + 0x38], ebx
je 0x41d848
cmp dword [edi + 0x8a0], 8
jl 0x41d798
mov eax, dword [edi + 0x48]
test eax, eax
je 0x41d75e
dec eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x3c]
jmp 0x41d784
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41d774
lea eax, [edi + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x48], 7
movzx eax, byte [ecx]
mov dword [edi + 0x3c], eax
shr dword [edi + 0x3c], 1
and eax, 1
test eax, eax
je 0x41d798
mov ebx, 4
jmp 0x41d828
mov ebx, 4
cmp dword [edi + 0x48], ebx
jge 0x41d7d6
mov ebp, 1
add dword [edi + 0x30], ebp
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41d7be
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
call edx
add esp, 4
mov eax, dword [edi + 0x30]
movzx edx, byte [eax]
mov ecx, dword [edi + 0x48]
shl edx, cl
add ecx, 8
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], edx
cmp ecx, ebx
jl 0x41d7a7
mov eax, dword [edi + 0x48]
cmp eax, 0x20
mov edx, dword [edi + 0x3c]
jle 0x41d7fb
mov ecx, dword [edi + 0x30]
add eax, 0xfffffffc
mov dword [edi + 0x48], eax
movzx ebp, byte [ecx]
mov ecx, 8
sub cl, al
shr ebp, cl
mov dword [edi + 0x3c], ebp
jmp 0x41d805
add eax, 0xfffffffc
shr dword [edi + 0x3c], 4
mov dword [edi + 0x48], eax
and edx, 0xf
cmp edx, dword [edi + 0x89c]
je 0x41d822
mov dword [edi + 0x89c], edx
mov dword [edi + 0x8a0], 0
jmp 0x41d828
inc dword [edi + 0x8a0]
mov eax, dword [esp + 0x1c]
shl esi, 4
add esi, dword [edi + 0x89c]
lea edx, [esi + eax*2]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov dword [esp + 0x1c], edx
add eax, ebx
jmp 0x41d865
mov eax, dword [esp + 0x1c]
lea ecx, [esi + eax*2]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
shl esi, cl
add eax, 4
mov dword [eax - 4], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41d606
jmp 0x41f253
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
mov esi, eax
cmp esi, 0x80000000
je 0x41f253
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov ecx, ebp
imul ecx, eax
sub ecx, 0xffffff80
sar ecx, 8
add ecx, ebx
add ecx, esi
xor edx, edx
test eax, eax
setge dl
xor eax, eax
test esi, esi
setg al
mov esi, 1
cmp edx, eax
jne 0x41d8eb
mov edx, ebp
add ebp, esi
mov dword [esp + 0x68], ebp
cmp edx, 0x100
jne 0x41d8fb
mov dword [esp + 0x68], edx
jmp 0x41d8fb
mov eax, ebp
sub ebp, esi
mov dword [esp + 0x68], ebp
test eax, eax
jne 0x41d8fb
mov dword [esp + 0x68], eax
sub ecx, ebx
add ebx, ecx
test byte [esp + 0x28], 0x40
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ebx
je 0x41da1b
cmp dword [edi + 0x8a0], 8
jl 0x41d965
mov eax, dword [edi + 0x48]
test eax, eax
je 0x41d92b
dec eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x3c]
jmp 0x41d952
add dword [edi + 0x30], esi
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41d942
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
call ecx
add esp, 4
mov edx, dword [edi + 0x30]
mov dword [edi + 0x48], 7
movzx eax, byte [edx]
mov dword [edi + 0x3c], eax
shr dword [edi + 0x3c], 1
and eax, esi
test eax, eax
je 0x41d965
mov ebp, 4
jmp 0x41d9f5
mov ebp, 4
cmp dword [edi + 0x48], ebp
jge 0x41d99e
nop
add dword [edi + 0x30], esi
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41d986
lea eax, [edi + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov edx, dword [edi + 0x30]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x48]
shl eax, cl
add ecx, 8
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], eax
cmp ecx, ebp
jl 0x41d970
mov eax, dword [edi + 0x48]
cmp eax, 0x20
mov edx, dword [edi + 0x3c]
jle 0x41d9c8
mov ecx, dword [edi + 0x30]
add eax, 0xfffffffc
mov dword [edi + 0x48], eax
movzx esi, byte [ecx]
mov ecx, 8
sub cl, al
shr esi, cl
mov dword [edi + 0x3c], esi
mov esi, 1
jmp 0x41d9d2
add eax, 0xfffffffc
shr dword [edi + 0x3c], 4
mov dword [edi + 0x48], eax
and edx, 0xf
cmp edx, dword [edi + 0x89c]
je 0x41d9ef
mov dword [edi + 0x89c], edx
mov dword [edi + 0x8a0], 0
jmp 0x41d9f5
add dword [edi + 0x8a0], esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
shl eax, 4
add eax, dword [edi + 0x89c]
mov dword [edx], eax
lea eax, [eax + ecx*2]
add eax, ecx
add edx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jmp 0x41da3c
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + eax*2]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
shl ebx, cl
add eax, 4
mov dword [esp + 0x18], eax
mov dword [eax - 4], ebx
mov eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41d88c
jmp 0x41f253
cmp ax, 3
jne 0x41e722
cmp si, cx
jne 0x41e722
mov ebx, dword [esp + 0x28]
test bl, 1
jne 0x41e726
mov eax, dword [edi + 0x890]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x894]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x88c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x898]
mov dword [esp + 0x44], eax
test bl, 2
je 0x41dca9
mov ebp, dword [esp + 0x88]
test bl, 0x40
je 0x41dbd2
mov dword [esp + 0x14], ecx
cmp edx, ecx
jbe 0x41dc7c
push 0
mov esi, edi
call fcn.0041ffb0
mov ebx, eax
cmp ebx, 0x80000000
je 0x41dc7c
push 1
call fcn.0041ffb0
mov ecx, eax
and ecx, 1
lea edx, [ebx + ebx]
or ecx, edx
mov edx, dword [esp + 0x74]
lea esi, [eax + ecx]
sub ecx, eax
mov eax, dword [esp + 0x7c]
sar esi, 1
add edx, esi
add dword [esp + 0x70], edx
sar ecx, 1
add eax, ecx
add dword [esp + 0x78], eax
mov esi, 8
cmp dword [edi + 0x48], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
jge 0x41db4d
lea esp, [esp]
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41db36
lea eax, [edi + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov edx, dword [edi + 0x30]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x48]
shl eax, cl
add ecx, esi
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], eax
cmp ecx, esi
jl 0x41db20
mov eax, dword [edi + 0x48]
cmp eax, 0x20
mov edx, dword [edi + 0x3c]
jle 0x41db72
mov ecx, dword [edi + 0x30]
add eax, 0xfffffff8
mov dword [edi + 0x48], eax
movzx esi, byte [ecx]
mov ecx, 8
sub cl, al
shr esi, cl
mov dword [edi + 0x3c], esi
jmp 0x41db7c
add eax, 0xfffffff8
shr dword [edi + 0x3c], 8
mov dword [edi + 0x48], eax
mov ecx, dword [esp + 0x70]
mov eax, edx
sar eax, 4
and eax, 0xf
shl ecx, 4
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp], eax
lea eax, [eax + ecx*2]
add eax, ecx
mov ecx, dword [esp + 0x78]
and edx, 0xf
shl ecx, 4
add edx, ecx
add ebp, 4
mov dword [ebp], edx
lea edx, [edx + eax*2]
add edx, eax
mov eax, dword [esp + 0x14]
inc eax
add ebp, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41dac5
jmp 0x41dc7c
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x8c], ebx
jbe 0x41dc7c
push 0
mov esi, edi
call fcn.0041ffb0
mov dword [esp + 0x54], eax
cmp eax, 0x80000000
je 0x41dc78
push 1
call fcn.0041ffb0
mov edx, dword [esp + 0x54]
mov ecx, eax
and ecx, 1
add edx, edx
or ecx, edx
mov edx, dword [esp + 0x74]
lea esi, [eax + ecx]
sub ecx, eax
mov eax, dword [esp + 0x7c]
sar ecx, 1
add eax, ecx
mov ecx, dword [esp + 0x70]
sar esi, 1
add edx, esi
mov esi, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x78]
add edx, eax
mov dword [esp + 0x7c], eax
lea eax, [ecx + esi*2]
add eax, esi
lea esi, [edx + eax*2]
add esi, eax
mov eax, ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [esp + 0x78], edx
shl edx, cl
add ebp, 4
mov dword [ebp - 4], eax
inc ebx
mov dword [ebp], edx
add ebp, 4
mov dword [esp + 0x1c], esi
cmp ebx, dword [esp + 0x8c]
jb 0x41dbe5
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x890], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x894], ecx
mov dword [edi + 0x88c], edx
mov dword [edi + 0x898], eax
jmp 0x41f253
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test bl, 0x10
je 0x41e435
cmp edx, ecx
jbe 0x41dc7c
mov eax, ebx
and eax, 0x1000
mov dword [esp + 0x58], eax
jmp 0x41dcd6
mov eax, dword [esp + 0x58]
mov esi, edi
test eax, eax
je 0x41dcfb
push 0
call fcn.0041f5c0
mov ebp, eax
cmp ebp, 0x80000000
je 0x41dc7c
push 1
call fcn.0041f5c0
mov esi, eax
jmp 0x41de8a
test dword [esp + 0x28], 0x400
je 0x41ddc8
push 0
call fcn.0041f5c0
mov ebx, eax
cmp ebx, 0x80000000
je 0x41dc7c
push 1
call fcn.0041f5c0
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
add ebp, esi
cmp edx, ecx
lea esi, [edx + ecx]
jle 0x41dd86
cmp esi, ebp
jge 0x41dd58
cmp edx, dword [esp + 0x44]
jge 0x41dd58
lea ecx, [eax + ebx]
mov ebp, eax
sub eax, ebx
mov esi, ebx
mov ebx, eax
jmp 0x41de2a
cmp dword [esp + 0x3c], ecx
jge 0x41dd78
mov edx, ebx
and edx, 1
lea ecx, [eax + eax]
or ecx, edx
mov esi, ecx
lea ebp, [ecx + ebx]
sub esi, ebx
sar ebp, 1
sar esi, 1
jmp 0x41de2a
mov esi, eax
sub esi, ebx
mov ebp, eax
lea ecx, [eax + esi]
jmp 0x41de2a
cmp esi, ebp
jge 0x41dd9e
cmp ecx, dword [esp + 0x44]
jge 0x41dd9e
mov ebp, ebx
lea ecx, [eax + ebx]
mov esi, eax
sub ebx, eax
jmp 0x41de2a
cmp dword [esp + 0x3c], edx
jge 0x41ddbe
lea ecx, [eax + eax]
mov eax, ebx
and eax, 1
or ecx, eax
mov esi, ecx
lea ebp, [ecx + ebx]
sub esi, ebx
sar ebp, 1
sar esi, 1
jmp 0x41de2a
lea ebp, [eax + ebx]
mov esi, eax
lea ecx, [eax + ebp]
jmp 0x41de2a
xor eax, eax
call fcn.0041fb60
mov ebx, eax
cmp ebx, 0x80000000
je 0x41dc7c
mov eax, 1
call fcn.0041fb60
mov edx, dword [esp + 0x48]
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, edx
jg 0x41de11
cmp eax, dword [esp + 0x40]
jg 0x41de11
mov edx, ebx
add ecx, ecx
and edx, 1
or ecx, edx
mov esi, ecx
lea ebp, [ecx + ebx]
sub esi, ebx
sar ebp, 1
sar esi, 1
jmp 0x41de26
cmp dword [esp + 0x40], edx
mov esi, ecx
jg 0x41de21
sub esi, ebx
mov ebp, ecx
add ecx, esi
jmp 0x41de26
lea ebp, [ecx + ebx]
add ecx, ebp
mov ebx, ebp
sub ebx, esi
sar ecx, 1
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x3c]
sar edx, 8
sub eax, edx
add dword [esp + 0x3c], eax
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x40]
sar edx, 8
sub eax, edx
add dword [esp + 0x40], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x48]
sar edx, 8
sub eax, edx
add dword [esp + 0x48], eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x44]
sar edx, 8
sub eax, edx
add dword [esp + 0x44], eax
test dword [esp + 0x28], 0x4000
je 0x41de8a
mov ebp, ebx
mov esi, ecx
test dword [esp + 0x28], 0x8000
mov ecx, dword [edi + 0x80]
lea eax, [edi + 0x8cc]
mov dword [esp + 0x30], ecx
je 0x41e0ac
test ecx, ecx
je 0x41e299
mov ecx, dword [eax]
dec dword [esp + 0x30]
test ecx, ecx
jle 0x41df7a
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + ecx*4 + 0x30]
mov ebx, dword [eax + ecx*4 + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [eax]
add ecx, edx
mov edx, dword [eax + 0xc]
imul edx, dword [esp + 0x50]
and ecx, 7
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
imul ecx, ebx
add ecx, 0x100
add edx, 0x100
sar ecx, 9
sar edx, 9
add ecx, ebp
add edx, esi
test ebx, ebx
je 0x41df31
test ebp, ebp
je 0x41df31
xor ebx, ebp
mov ebp, dword [eax + 8]
jl 0x41df1d
lea ebx, [ebp + 1]
mov dword [eax + 8], ebx
cmp ebp, 0x200
jne 0x41df31
dec ebx
jmp 0x41df2e
lea ebx, [ebp - 1]
mov dword [esp + 0x54], ebx
mov dword [eax + 8], ebx
cmp ebp, dword [esp + 0x2c]
jne 0x41df31
inc ebx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x41df65
test esi, esi
je 0x41df65
xor ebx, esi
mov ebx, dword [eax + 0xc]
jl 0x41df55
lea esi, [ebx + 1]
mov dword [eax + 0xc], esi
cmp ebx, 0x200
jne 0x41df65
dec esi
jmp 0x41df62
lea esi, [ebx - 1]
mov dword [eax + 0xc], esi
cmp ebx, dword [esp + 0x2c]
jne 0x41df65
inc esi
mov dword [eax + 0xc], esi
mov ebx, dword [esp + 0x5c]
mov ebp, ecx
mov dword [eax + ebx*4 + 0x10], ecx
mov esi, edx
mov dword [eax + ebx*4 + 0x30], edx
jmp 0x41e099
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 8]
cmp ecx, 0xffffffff
mov ecx, ebx
jne 0x41e017
imul ecx, edx
add ecx, 0x100
sar ecx, 9
add ecx, ebp
test ebx, ebx
je 0x41dfc6
test ebp, ebp
je 0x41dfc6
xor ebx, ebp
jl 0x41dfb6
lea ebx, [edx + 1]
mov dword [eax + 8], ebx
cmp edx, 0x200
jne 0x41dfc6
dec ebx
jmp 0x41dfc3
lea ebx, [edx - 1]
mov dword [eax + 8], ebx
cmp edx, dword [esp + 0x2c]
jne 0x41dfc6
inc ebx
mov dword [eax + 8], ebx
mov ebx, dword [eax + 0xc]
mov edx, ebx
imul edx, ecx
add edx, 0x100
sar edx, 9
add edx, esi
mov ebp, ecx
test ecx, ecx
je 0x41e010
test esi, esi
je 0x41e010
xor ecx, esi
jl 0x41e000
lea ecx, [ebx + 1]
mov dword [eax + 0xc], ecx
cmp ebx, 0x200
jne 0x41e010
dec ecx
mov dword [eax + 0xc], ecx
mov esi, edx
jmp 0x41e096
lea ecx, [ebx - 1]
mov dword [eax + 0xc], ecx
cmp ebx, dword [esp + 0x2c]
jne 0x41e010
inc ecx
mov dword [eax + 0xc], ecx
mov esi, edx
jmp 0x41e096
imul ecx, edx
add ecx, 0x100
sar ecx, 9
add ecx, esi
test ebx, ebx
je 0x41e052
test esi, esi
je 0x41e052
xor ebx, esi
jl 0x41e042
lea esi, [edx + 1]
mov dword [eax + 8], esi
cmp edx, 0x200
jne 0x41e052
dec esi
jmp 0x41e04f
lea esi, [edx - 1]
mov dword [eax + 8], esi
cmp edx, dword [esp + 0x2c]
jne 0x41e052
inc esi
mov dword [eax + 8], esi
mov ebx, dword [eax + 0xc]
mov edx, ebx
imul edx, ecx
add edx, 0x100
sar edx, 9
add edx, ebp
mov esi, ecx
test ecx, ecx
je 0x41e094
test ebp, ebp
je 0x41e094
xor ecx, ebp
jl 0x41e084
lea ecx, [ebx + 1]
mov dword [eax + 0xc], ecx
cmp ebx, 0x200
jne 0x41e094
dec ecx
jmp 0x41e091
lea ecx, [ebx - 1]
mov dword [eax + 0xc], ecx
cmp ebx, dword [esp + 0x2c]
jne 0x41e094
inc ecx
mov dword [eax + 0xc], ecx
mov ebp, edx
mov dword [eax + 0x10], edx
add eax, 0x60
cmp dword [esp + 0x30], 0
jne 0x41deb0
jmp 0x41e299
test ecx, ecx
je 0x41e299
mov ecx, dword [eax]
dec dword [esp + 0x30]
test ecx, ecx
jle 0x41e178
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + ecx*4 + 0x30]
mov ebx, dword [eax + ecx*4 + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [eax]
add ecx, edx
mov edx, dword [eax + 0xc]
imul edx, dword [esp + 0x50]
and ecx, 7
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
imul ecx, ebx
sub ecx, 0xffffff80
sub edx, 0xffffff80
sar ecx, 8
sar edx, 8
add ecx, ebp
add edx, esi
test ebx, ebx
je 0x41e12f
test ebp, ebp
je 0x41e12f
xor ebx, ebp
mov ebp, dword [eax + 8]
jl 0x41e11b
lea ebx, [ebp + 1]
mov dword [eax + 8], ebx
cmp ebp, 0x100
jne 0x41e12f
dec ebx
jmp 0x41e12c
lea ebx, [ebp - 1]
mov dword [esp + 0x5c], ebx
mov dword [eax + 8], ebx
cmp ebp, dword [esp + 0x2c]
jne 0x41e12f
inc ebx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x41e163
test esi, esi
je 0x41e163
xor ebx, esi
mov ebx, dword [eax + 0xc]
jl 0x41e153
lea esi, [ebx + 1]
mov dword [eax + 0xc], esi
cmp ebx, 0x100
jne 0x41e163
dec esi
jmp 0x41e160
lea esi, [ebx - 1]
mov dword [eax + 0xc], esi
cmp ebx, dword [esp + 0x2c]
jne 0x41e163
inc esi
mov dword [eax + 0xc], esi
mov ebx, dword [esp + 0x64]
mov ebp, ecx
mov dword [eax + ebx*4 + 0x10], ecx
mov esi, edx
mov dword [eax + ebx*4 + 0x30], edx
jmp 0x41e28b
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 8]
cmp ecx, 0xffffffff
mov ecx, ebx
jne 0x41e20f
imul ecx, edx
sub ecx, 0xffffff80
sar ecx, 8
add ecx, ebp
test ebx, ebx
je 0x41e1c1
test ebp, ebp
je 0x41e1c1
xor ebx, ebp
jl 0x41e1b1
lea ebx, [edx + 1]
mov dword [eax + 8], ebx
cmp edx, 0x100
jne 0x41e1c1
dec ebx
jmp 0x41e1be
lea ebx, [edx - 1]
mov dword [eax + 8], ebx
cmp edx, dword [esp + 0x2c]
jne 0x41e1c1
inc ebx
mov dword [eax + 8], ebx
mov ebx, dword [eax + 0xc]
mov edx, ebx
imul edx, ecx
sub edx, 0xffffff80
sar edx, 8
add edx, esi
mov ebp, ecx
test ecx, ecx
je 0x41e208
test esi, esi
je 0x41e208
xor ecx, esi
jl 0x41e1f8
lea ecx, [ebx + 1]
mov dword [eax + 0xc], ecx
cmp ebx, 0x100
jne 0x41e208
dec ecx
mov dword [eax + 0xc], ecx
mov esi, edx
jmp 0x41e288
lea ecx, [ebx - 1]
mov dword [eax + 0xc], ecx
cmp ebx, dword [esp + 0x2c]
jne 0x41e208
inc ecx
mov dword [eax + 0xc], ecx
mov esi, edx
jmp 0x41e288
imul ecx, edx
sub ecx, 0xffffff80
sar ecx, 8
add ecx, esi
test ebx, ebx
je 0x41e247
test esi, esi
je 0x41e247
xor ebx, esi
jl 0x41e237
lea esi, [edx + 1]
mov dword [eax + 8], esi
cmp edx, 0x100
jne 0x41e247
dec esi
jmp 0x41e244
lea esi, [edx - 1]
mov dword [eax + 8], esi
cmp edx, dword [esp + 0x2c]
jne 0x41e247
inc esi
mov dword [eax + 8], esi
mov ebx, dword [eax + 0xc]
mov edx, ebx
imul edx, ecx
sub edx, 0xffffff80
sar edx, 8
add edx, ebp
mov esi, ecx
test ecx, ecx
je 0x41e286
test ebp, ebp
je 0x41e286
xor ecx, ebp
jl 0x41e276
lea ecx, [ebx + 1]
mov dword [eax + 0xc], ecx
cmp ebx, 0x100
jne 0x41e286
dec ecx
jmp 0x41e283
lea ecx, [ebx - 1]
mov dword [eax + 0xc], ecx
cmp ebx, dword [esp + 0x2c]
jne 0x41e286
inc ecx
mov dword [eax + 0xc], ecx
mov ebp, edx
mov dword [eax + 0x10], edx
add eax, 0x60
cmp dword [esp + 0x30], 0
jne 0x41e0b4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
inc eax
and eax, 7
mov dword [esp + 0x38], eax
test ecx, 0x4000
je 0x41e2c7
mov edx, ebp
and edx, 1
lea eax, [esi + esi]
or eax, edx
mov edx, eax
sub edx, ebp
sar edx, 1
add ebp, eax
mov esi, edx
sar ebp, 1
test cl, 0x40
je 0x41e3eb
mov ebx, 8
cmp dword [edi + 0x8a0], ebx
jl 0x41e321
mov eax, dword [edi + 0x48]
test eax, eax
je 0x41e2ed
dec eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x3c]
jmp 0x41e313
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41e303
lea eax, [edi + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x48], 7
movzx eax, byte [ecx]
mov dword [edi + 0x3c], eax
shr dword [edi + 0x3c], 1
and eax, 1
test eax, eax
jne 0x41e3a9
cmp dword [edi + 0x48], ebx
jge 0x41e354
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41e33d
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
call edx
add esp, 4
mov eax, dword [edi + 0x30]
movzx edx, byte [eax]
mov ecx, dword [edi + 0x48]
shl edx, cl
add ecx, ebx
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], edx
cmp ecx, ebx
jl 0x41e326
mov eax, dword [edi + 0x48]
cmp eax, 0x20
mov edx, dword [edi + 0x3c]
jle 0x41e379
mov ecx, dword [edi + 0x30]
add eax, 0xfffffff8
mov dword [edi + 0x48], eax
movzx ebx, byte [ecx]
mov ecx, 8
sub cl, al
shr ebx, cl
mov dword [edi + 0x3c], ebx
jmp 0x41e383
add eax, 0xfffffff8
shr dword [edi + 0x3c], 8
mov dword [edi + 0x48], eax
and edx, 0xff
cmp edx, dword [edi + 0x89c]
je 0x41e3a3
mov dword [edi + 0x89c], edx
mov dword [edi + 0x8a0], 0
jmp 0x41e3a9
inc dword [edi + 0x8a0]
mov eax, dword [edi + 0x89c]
mov edx, dword [esp + 0x18]
sar eax, 4
shl ebp, 4
add eax, ebp
mov dword [edx], eax
mov ecx, dword [edi + 0x89c]
and ecx, 0xf
shl esi, 4
add ecx, esi
mov esi, dword [esp + 0x1c]
add edx, 4
lea eax, [eax + esi*2]
add eax, esi
mov dword [edx], ecx
lea ecx, [ecx + eax*2]
add ecx, eax
add edx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x41e41a
mov ecx, dword [esp + 0x1c]
lea eax, [ebp + ecx*2]
add eax, ecx
mov ecx, dword [esp + 0x34]
lea edx, [esi + eax*2]
add edx, eax
mov eax, dword [esp + 0x18]
shl ebp, cl
shl esi, cl
add eax, 4
add eax, 4
mov dword [eax - 8], ebp
mov dword [eax - 4], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41dcd2
jmp 0x41dc7c
cmp edx, ecx
jbe 0x41dc7c
lea ecx, [ecx]
mov ebp, dword [esp + 0x3c]
push 0
mov esi, edi
call fcn.0041ffb0
mov ebx, eax
cmp ebx, 0x80000000
je 0x41dc7c
mov eax, dword [esp + 0x48]
cmp ebp, eax
jg 0x41e486
cmp ebp, dword [esp + 0x40]
jg 0x41e486
push 1
call fcn.0041ffb0
mov ecx, ebx
and ecx, 1
add eax, eax
or eax, ecx
mov ebp, eax
lea ecx, [eax + ebx]
sub ebp, ebx
sar ecx, 1
sar ebp, 1
jmp 0x41e4a8
cmp dword [esp + 0x40], eax
push 1
jg 0x41e49b
call fcn.0041ffb0
mov ecx, eax
mov ebp, ecx
sub ebp, ebx
jmp 0x41e4a5
call fcn.0041ffb0
mov ebp, eax
lea ecx, [ebx + ebp]
lea eax, [ecx + ebp]
sar eax, 1
cdq
mov esi, eax
mov eax, dword [esp + 0x3c]
xor esi, edx
sub esi, edx
mov edx, eax
sar edx, 8
sub esi, edx
add eax, esi
mov dword [esp + 0x3c], eax
mov eax, ecx
cdq
mov esi, eax
mov eax, dword [esp + 0x40]
xor esi, edx
sub esi, edx
mov edx, eax
sar edx, 8
sub esi, edx
add eax, esi
mov dword [esp + 0x40], eax
mov eax, ebp
cdq
mov esi, eax
mov eax, dword [esp + 0x48]
xor esi, edx
sub esi, edx
mov edx, eax
sar edx, 8
sub esi, edx
mov edx, dword [esp + 0x68]
add eax, esi
mov esi, dword [esp + 0x6c]
imul esi, dword [esp + 0x7c]
mov dword [esp + 0x48], eax
mov eax, edx
imul eax, dword [esp + 0x74]
sub eax, 0xffffff80
sub esi, 0xffffff80
sar eax, 8
add eax, ecx
add eax, dword [esp + 0x70]
sar esi, 8
add esi, ebp
add esi, dword [esp + 0x78]
xor ebx, ebx
test ecx, ecx
setg bl
xor ecx, ecx
cmp dword [esp + 0x74], ecx
setge cl
cmp ecx, ebx
mov ecx, edx
jne 0x41e54b
inc edx
mov dword [esp + 0x68], edx
cmp ecx, 0x100
jne 0x41e558
mov dword [esp + 0x68], ecx
jmp 0x41e558
dec edx
mov dword [esp + 0x68], edx
test ecx, ecx
jne 0x41e558
mov dword [esp + 0x68], ecx
xor edx, edx
test ebp, ebp
setg dl
xor ecx, ecx
cmp dword [esp + 0x7c], ecx
setge cl
cmp ecx, edx
mov ecx, dword [esp + 0x6c]
mov edx, ecx
jne 0x41e585
inc ecx
mov dword [esp + 0x6c], ecx
cmp edx, 0x100
jne 0x41e592
mov dword [esp + 0x6c], edx
jmp 0x41e592
dec ecx
mov dword [esp + 0x6c], ecx
test edx, edx
jne 0x41e592
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
sub eax, ebx
sub esi, ebp
add ebx, eax
add ebp, esi
test byte [esp + 0x28], 0x40
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebp
je 0x41e6d8
mov esi, 8
cmp dword [edi + 0x8a0], esi
jl 0x41e60e
mov eax, dword [edi + 0x48]
test eax, eax
je 0x41e5da
dec eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x3c]
jmp 0x41e600
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41e5f0
lea eax, [edi + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x48], 7
movzx eax, byte [ecx]
mov dword [edi + 0x3c], eax
shr dword [edi + 0x3c], 1
and eax, 1
test eax, eax
jne 0x41e696
cmp dword [edi + 0x48], esi
jge 0x41e641
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x2c]
jne 0x41e62a
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
call edx
add esp, 4
mov eax, dword [edi + 0x30]
movzx edx, byte [eax]
mov ecx, dword [edi + 0x48]
shl edx, cl
add ecx, esi
mov dword [edi + 0x48], ecx
or dword [edi + 0x3c], edx
cmp ecx, esi
jl 0x41e613
mov eax, dword [edi + 0x48]
cmp eax, 0x20
mov edx, dword [edi + 0x3c]
jle 0x41e666
mov ecx, dword [edi + 0x30]
add eax, 0xfffffff8
mov dword [edi + 0x48], eax
movzx esi, byte [ecx]
mov ecx, 8
sub cl, al
shr esi, cl
mov dword [edi + 0x3c], esi
jmp 0x41e670
add eax, 0xfffffff8
shr dword [edi + 0x3c], 8
mov dword [edi + 0x48], eax
and edx, 0xff
cmp edx, dword [edi + 0x89c]
je 0x41e690
mov dword [edi + 0x89c], edx
mov dword [edi + 0x8a0], 0
jmp 0x41e696
inc dword [edi + 0x8a0]
mov eax, dword [edi + 0x89c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
sar eax, 4
shl ebx, 4
add eax, ebx
mov dword [edx], eax
mov ecx, dword [edi + 0x89c]
and ecx, 0xf
shl ebp, 4
add ecx, ebp
add edx, 4
lea eax, [eax + esi*2]
add eax, esi
mov dword [edx], ecx
lea ecx, [ecx + eax*2]
add ecx, eax
add edx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x41e707
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + ecx*2]
add eax, ecx
mov ecx, dword [esp + 0x34]
lea edx, [ebp + eax*2]
add edx, eax
mov eax, dword [esp + 0x18]
shl ebx, cl
shl ebp, cl
add eax, 4
add eax, 4
mov dword [eax - 8], ebx
mov dword [eax - 4], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41e440
jmp 0x41dc7c
mov ebx, dword [esp + 0x28]
cmp ax, 3
jne 0x41f070
cmp si, cx
je 0x41ea9d
test bl, 1
je 0x41ea9d
mov dword [esp + 0x14], ecx
test bl, 2
je 0x41e7f3
mov ebx, dword [esp + 0x88]
cmp edx, ecx
jbe 0x41f253
mov edi, edi
push 0
mov esi, edi
call fcn.0041ffb0
cmp eax, 0x80000000
je 0x41f253
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*2]
add edx, ecx
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], edx
jge 0x41e7b1
mov ecx, dword [esp + 0x24]
neg ecx
cmp eax, ecx
jge 0x41e7ad
mov dword [esp + 0x20], 1
mov dword [ebx], ebp
jmp 0x41e7d5
cmp eax, dword [esp + 0x3c]
jle 0x41e7cd
cmp eax, dword [esp + 0x24]
jle 0x41e7c5
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x44]
mov dword [ebx], edx
jmp 0x41e7d5
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
inc eax
add ebx, 4
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41e760
jmp 0x41f253
test ebx, 0x410
je 0x41e9a0
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x18], ebx
cmp edx, ecx
jbe 0x41f253
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x5c]
and eax, 0x400
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x4c], 0
mov esi, edi
je 0x41e83e
lea eax, [esp + 0x5c]
push eax
push 0
call fcn.00420230
mov ebp, dword [esp + 0x5c]
jmp 0x41e845
push 0
call fcn.0041ffb0
cmp eax, 0x80000000
je 0x41f253
mov edx, dword [edi + 0x80]
mov esi, dword [esp + 0x38]
lea ecx, [edi + 0x8cc]
test edx, edx
je 0x41e8e9
mov esi, dword [ecx + esi*4 + 0x10]
mov ebx, dword [ecx + 8]
dec edx
mov dword [esp + 0x30], edx
mov edx, esi
sar edx, 7
and edx, 0xfffffe00
mov ebp, esi
imul edx, ebx
and ebp, 0xffff
imul ebp, ebx
sar ebp, 7
lea edx, [edx + ebp + 1]
sar edx, 1
add edx, eax
test esi, esi
je 0x41e8c5
test eax, eax
je 0x41e8c5
xor esi, eax
jl 0x41e8b5
lea eax, [ebx + 1]
mov dword [ecx + 8], eax
cmp ebx, 0x100
jne 0x41e8c5
dec eax
jmp 0x41e8c2
lea eax, [ebx - 1]
mov dword [ecx + 8], eax
cmp ebx, dword [esp + 0x2c]
jne 0x41e8c5
inc eax
mov dword [ecx + 8], eax
mov ebx, dword [ecx]
mov esi, dword [esp + 0x38]
add ebx, esi
and ebx, 7
mov dword [ecx + ebx*4 + 0x10], edx
mov eax, edx
mov edx, dword [esp + 0x30]
add ecx, 0x60
test edx, edx
jne 0x41e868
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc esi
and esi, 7
mov dword [esp + 0x38], esi
test cl, cl
jns 0x41e959
test ecx, 0x100
je 0x41e920
mov ecx, dword [edi + 0x8a8]
add ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*2]
add edx, ecx
mov ecx, ebp
neg ecx
mov dword [edi + 0x8a8], ecx
jmp 0x41e92b
mov ecx, dword [esp + 0x1c]
add eax, ebp
lea edx, [eax + ecx*2]
add edx, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
inc eax
add ebx, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41e823
jmp 0x41f253
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*2]
add edx, ecx
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
jge 0x41e986
mov ecx, dword [esp + 0x24]
neg ecx
cmp eax, ecx
jge 0x41e97e
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x40]
mov dword [ebx], edx
jmp 0x41e937
cmp eax, dword [esp + 0x3c]
jle 0x41e92f
cmp eax, dword [esp + 0x24]
jle 0x41e99a
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x44]
jmp 0x41e935
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
mov esi, eax
cmp esi, 0x80000000
je 0x41f253
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, ebp
imul edx, eax
sub edx, 0xffffff80
sar edx, 8
add edx, ecx
xor ebx, ebx
add edx, esi
test eax, eax
setge bl
xor eax, eax
test esi, esi
setg al
cmp ebx, eax
mov eax, ebp
jne 0x41ea0b
inc ebp
mov dword [esp + 0x68], ebp
cmp eax, 0x100
jne 0x41ea18
mov dword [esp + 0x68], eax
jmp 0x41ea18
dec ebp
mov dword [esp + 0x68], ebp
test eax, eax
jne 0x41ea18
mov dword [esp + 0x68], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax*2]
add ecx, eax
cmp edx, dword [esp + 0x48]
mov dword [esp + 0x70], edx
mov dword [esp + 0x1c], ecx
jge 0x41ea55
mov eax, dword [esp + 0x24]
neg eax
cmp edx, eax
jge 0x41ea49
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x41ea7b
cmp edx, dword [esp + 0x3c]
jle 0x41ea6f
cmp edx, dword [esp + 0x24]
jle 0x41ea69
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x44]
jmp 0x41ea75
mov ecx, dword [esp + 0x34]
shl edx, cl
mov eax, dword [esp + 0x18]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41e9b3
jmp 0x41f253
cmp ax, 3
jne 0x41f070
cmp si, cx
je 0x41f070
test bl, 1
jne 0x41f070
test bl, 2
je 0x41ebd3
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
cmp eax, 0x80000000
je 0x41f253
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + ecx*2]
add ebx, ecx
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x70], eax
jge 0x41eb27
mov ecx, dword [esp + 0x24]
neg ecx
cmp eax, ecx
jge 0x41eb1e
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x40]
mov dword [ebp], edx
jmp 0x41eb4a
cmp eax, dword [esp + 0x3c]
jle 0x41eb41
cmp eax, dword [esp + 0x24]
jle 0x41eb3b
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x44]
jmp 0x41eb47
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [ebp], eax
push 1
add ebp, 4
call fcn.0041ffb0
mov ecx, dword [esp + 0x7c]
add ecx, eax
mov eax, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x7c], ecx
lea ecx, [eax + ebx*2]
add ecx, ebx
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], ecx
jge 0x41eb92
mov ecx, dword [esp + 0x24]
neg ecx
cmp eax, ecx
jge 0x41eb89
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x40]
mov dword [ebp], edx
jmp 0x41ebb5
cmp eax, dword [esp + 0x3c]
jle 0x41ebac
cmp eax, dword [esp + 0x24]
jle 0x41eba6
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x44]
jmp 0x41ebb2
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
inc eax
add ebp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41ead5
jmp 0x41f253
test ebx, 0x410
je 0x41eebc
cmp dword [esp + 0x8c], 0
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
jbe 0x41f253
mov eax, dword [esp + 0x28]
and eax, 0x400
mov dword [esp + 0x4c], eax
jmp 0x41ec14
mov eax, dword [esp + 0x4c]
mov esi, edi
test eax, eax
je 0x41ec3a
lea ecx, [esp + 0x5c]
push ecx
push 0
call fcn.00420230
lea edx, [esp + 0x60]
push edx
mov ebp, eax
push 1
mov dword [esp + 0x5c], ebp
call fcn.00420230
jmp 0x41ec4e
push 0
call fcn.0041ffb0
mov ebp, eax
push 1
mov dword [esp + 0x58], ebp
call fcn.0041ffb0
mov dword [esp + 0x50], eax
cmp ebp, 0x80000000
je 0x41f253
mov edx, dword [edi + 0x80]
lea ecx, [edi + 0x8cc]
test edx, edx
je 0x41ed67
mov eax, dword [esp + 0x38]
mov esi, dword [ecx + eax*4 + 0x10]
mov ebp, dword [ecx]
dec edx
mov dword [esp + 0x30], edx
mov edx, dword [ecx + eax*4 + 0x30]
mov dword [esp + 0x64], edx
add ebp, eax
mov eax, dword [ecx + 8]
mov edx, esi
sar edx, 7
and edx, 0xfffffe00
mov ebx, esi
imul edx, eax
and ebx, 0xffff
imul ebx, eax
sar ebx, 7
lea edx, [edx + ebx + 1]
mov ebx, dword [esp + 0x54]
sar edx, 1
and ebp, 7
add edx, ebx
test esi, esi
je 0x41ece5
test ebx, ebx
je 0x41ece5
xor esi, ebx
jl 0x41ecd5
lea esi, [eax + 1]
mov dword [ecx + 8], esi
cmp eax, 0x100
jne 0x41ece5
dec esi
jmp 0x41ece2
lea esi, [eax - 1]
mov dword [ecx + 8], esi
cmp eax, dword [esp + 0x2c]
jne 0x41ece5
inc esi
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x64]
mov eax, esi
sar eax, 7
and eax, 0xfffffe00
mov ebx, esi
and ebx, 0xffff
mov dword [esp + 0x54], edx
mov dword [ecx + ebp*4 + 0x10], edx
mov edx, dword [ecx + 0xc]
imul ebx, edx
imul eax, edx
sar ebx, 7
lea eax, [eax + ebx + 1]
mov ebx, dword [esp + 0x50]
sar eax, 1
add eax, ebx
test esi, esi
je 0x41ed48
test ebx, ebx
je 0x41ed48
xor esi, ebx
jl 0x41ed38
lea esi, [edx + 1]
mov dword [ecx + 0xc], esi
cmp edx, 0x100
jne 0x41ed48
dec esi
jmp 0x41ed45
lea esi, [edx - 1]
mov dword [ecx + 0xc], esi
cmp edx, dword [esp + 0x2c]
jne 0x41ed48
inc esi
mov dword [ecx + 0xc], esi
mov edx, dword [esp + 0x30]
mov dword [ecx + ebp*4 + 0x30], eax
add ecx, 0x60
mov dword [esp + 0x50], eax
test edx, edx
jne 0x41ec72
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
inc ecx
and ecx, 7
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
mov esi, ecx
and esi, 0x80
mov dword [esp + 0x64], esi
je 0x41edcb
test ecx, 0x100
je 0x41edc3
mov ecx, dword [edi + 0x8a8]
mov edx, dword [esp + 0x5c]
mov esi, dword [edi + 0x8ac]
add ecx, edx
add ebp, ecx
mov ecx, dword [esp + 0x60]
add esi, ecx
add eax, esi
mov esi, dword [esp + 0x64]
neg edx
neg ecx
mov dword [edi + 0x8ac], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x8a8], edx
jmp 0x41edcb
add ebp, dword [esp + 0x5c]
add eax, dword [esp + 0x60]
test ecx, 0x4000
je 0x41ede7
mov edx, ebp
lea ecx, [eax + eax]
and edx, 1
or ecx, edx
mov eax, ecx
sub eax, ebp
add ebp, ecx
sar eax, 1
sar ebp, 1
mov edx, dword [esp + 0x1c]
lea ecx, [ebp + edx*2]
add ecx, edx
lea edx, [eax + ecx*2]
add edx, ecx
mov dword [esp + 0x1c], edx
test esi, esi
je 0x41ee0f
mov ecx, dword [esp + 0x34]
shl ebp, cl
add ebx, 4
mov dword [ebx - 4], ebp
jmp 0x41ee96
mov edx, dword [esp + 0x48]
cmp ebp, edx
jge 0x41ee33
mov ecx, dword [esp + 0x24]
mov esi, ecx
neg esi
cmp ebp, esi
jge 0x41ee2b
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x40]
mov dword [ebx], esi
jmp 0x41ee5d
cmp ebp, dword [esp + 0x3c]
jle 0x41ee51
mov ecx, dword [esp + 0x24]
cmp ebp, ecx
jle 0x41ee49
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x44]
mov dword [ebx], esi
jmp 0x41ee5d
mov ecx, dword [esp + 0x34]
shl ebp, cl
mov ecx, dword [esp + 0x24]
mov dword [ebx], ebp
add ebx, 4
cmp eax, edx
jge 0x41ee78
neg ecx
cmp eax, ecx
jge 0x41ee72
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x40]
jmp 0x41ee98
cmp eax, dword [esp + 0x3c]
jle 0x41ee92
cmp eax, ecx
jle 0x41ee8a
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x44]
mov dword [ebx], ecx
jmp 0x41ee9a
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
inc eax
add ebx, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41ec10
jmp 0x41f253
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp edx, ecx
jbe 0x41f253
push 0
mov esi, edi
call fcn.0041ffb0
mov esi, eax
cmp esi, 0x80000000
je 0x41f253
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
mov ecx, ebp
imul ecx, eax
sub ecx, 0xffffff80
sar ecx, 8
add ecx, dword [esp + 0x70]
xor edx, edx
add ecx, esi
test eax, eax
setge dl
xor eax, eax
test esi, esi
setg al
cmp edx, eax
jne 0x41ef2a
mov edx, ebp
inc ebp
mov dword [esp + 0x68], ebp
cmp edx, 0x100
jne 0x41ef39
mov dword [esp + 0x68], edx
jmp 0x41ef39
mov eax, ebp
dec ebp
mov dword [esp + 0x68], ebp
test eax, eax
jne 0x41ef39
mov dword [esp + 0x68], eax
mov eax, ecx
sub eax, dword [esp + 0x70]
mov ebx, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
lea ebp, [ecx + eax*2]
push 1
mov esi, edi
mov dword [esp + 0x74], ebx
add ebp, eax
call fcn.0041ffb0
mov edx, dword [esp + 0x6c]
mov esi, eax
mov eax, dword [esp + 0x7c]
imul edx, eax
sub edx, 0xffffff80
sar edx, 8
add edx, dword [esp + 0x78]
xor ecx, ecx
add edx, esi
test eax, eax
setge cl
xor eax, eax
test esi, esi
setg al
cmp ecx, eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
jne 0x41ef9f
inc eax
mov dword [esp + 0x6c], eax
cmp ecx, 0x100
jne 0x41efac
mov dword [esp + 0x6c], ecx
jmp 0x41efac
dec eax
mov dword [esp + 0x6c], eax
test ecx, ecx
jne 0x41efac
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x48]
mov eax, edx
sub eax, dword [esp + 0x78]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
lea eax, [edx + ebp*2]
add eax, ebp
cmp ebx, esi
mov dword [esp + 0x1c], eax
jge 0x41efe5
mov ecx, dword [esp + 0x24]
mov eax, ecx
neg eax
cmp ebx, eax
jge 0x41efdf
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x40]
jmp 0x41f00b
cmp ebx, dword [esp + 0x3c]
jle 0x41f001
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jle 0x41effb
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x44]
jmp 0x41f00b
mov ecx, dword [esp + 0x34]
shl ebx, cl
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
add eax, 4
cmp edx, esi
jge 0x41f02e
neg ecx
cmp edx, ecx
jge 0x41f026
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
jmp 0x41f04e
cmp edx, dword [esp + 0x3c]
jle 0x41f046
cmp edx, ecx
jle 0x41f040
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x44]
jmp 0x41f04c
mov ecx, dword [esp + 0x34]
shl edx, cl
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41eed3
jmp 0x41f253
cmp ax, 2
jne 0x41f12c
test bl, 1
je 0x41f12c
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
cmp edx, ecx
jbe 0x41f253
mov ebp, dword [esp + 0x48]
lea ebx, [ebx]
xor eax, eax
mov esi, edi
call fcn.0041fd90
cmp eax, 0x80000000
je 0x41f253
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, ecx
cmp word [edi + 0xa], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
je 0x41f105
cmp eax, ebp
jge 0x41f0e9
mov ecx, dword [esp + 0x24]
neg ecx
cmp eax, ecx
jge 0x41f0e5
mov dword [esp + 0x20], 1
mov eax, ebp
jmp 0x41f101
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jle 0x41f105
cmp eax, dword [esp + 0x24]
jle 0x41f0ff
mov dword [esp + 0x20], 1
mov eax, ecx
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x34]
shl eax, cl
add ebx, 4
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41f0a0
jmp 0x41f253
cmp ax, 3
jge 0x41f24f
test bl, 1
jne 0x41f24f
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
cmp edx, ecx
jbe 0x41f253
xor eax, eax
mov esi, edi
call fcn.0041fd90
mov ebx, eax
cmp ebx, 0x80000000
je 0x41f253
mov eax, 1
call fcn.0041fd90
mov esi, dword [esp + 0x74]
mov ecx, eax
and ecx, 1
lea edx, [ebx + ebx]
or ecx, edx
lea edx, [eax + ecx]
sar edx, 1
add esi, edx
mov edx, dword [esp + 0x70]
sub ecx, eax
mov eax, dword [esp + 0x78]
add edx, esi
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x7c]
sar ecx, 1
add esi, ecx
add eax, esi
cmp word [edi + 0xa], 0
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], eax
je 0x41f223
mov ebx, dword [esp + 0x48]
cmp edx, ebx
mov ecx, dword [esp + 0x24]
jge 0x41f1dd
mov esi, ecx
neg esi
cmp edx, esi
jge 0x41f1d5
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x3c]
mov edx, ebx
jmp 0x41f1f3
mov esi, dword [esp + 0x3c]
cmp edx, esi
jle 0x41f1f7
cmp edx, ecx
jle 0x41f1f1
mov dword [esp + 0x20], 1
mov edx, esi
mov dword [esp + 0x70], edx
cmp eax, ebx
jge 0x41f20d
neg ecx
cmp eax, ecx
jge 0x41f209
mov dword [esp + 0x20], 1
mov eax, ebx
jmp 0x41f21f
cmp eax, esi
jle 0x41f223
cmp eax, ecx
jle 0x41f21d
mov dword [esp + 0x20], 1
mov eax, esi
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x34]
shl edx, cl
shl eax, cl
add ebp, 4
add ebp, 4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x8c]
jb 0x41f152
jmp 0x41f253
mov dword [esp + 0x14], ecx
cmp word [edi + 0xa], 0
je 0x41f261
test byte [esp + 0x28], 0x80
je 0x41f2a4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x88]
and al, 1
movsx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 2
imul ecx, dword [esp + 0x8c]
lea esi, [edx + ecx*4]
mov eax, edx
cmp edx, esi
jae 0x41f2ab
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax]
cmp ecx, ebx
jg 0x41f2b2
mov ebp, ebx
neg ebp
cmp ecx, ebp
jl 0x41f2b2
add eax, 0xc
cmp eax, esi
jb 0x41f28d
jmp 0x41f2ab
mov edx, dword [esp + 0x88]
cmp dword [esp + 0x20], 0
je 0x41f2da
mov al, byte [esp + 0x28]
and al, 1
movsx eax, al
neg eax
sbb eax, eax
add eax, 2
imul eax, dword [esp + 0x8c]
add eax, eax
add eax, eax
push eax
push 0
push edx
call fcn.004b8df0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f4bd
add dword [edi + 0x7c], eax
mov eax, dword [edi + 0x7c]
mov esi, dword [esp + 0x84]
cmp eax, dword [esi + 0x8c]
jne 0x41f4bd
cmp word [edi + 8], 3
jne 0x41f32a
cmp dword [esi + 0x98], 0
je 0x41f314
mov eax, dword [edi + 0x18]
jmp 0x41f317
mov eax, dword [edi + 0x14]
mov ebx, 1
cmp dword [esp + 0x1c], eax
je 0x41f32f
add dword [esi + 0x90], ebx
jmp 0x41f32f
mov ebx, 1
test byte [esi + 0x9c], 4
je 0x41f4bd
push 0x400
call fcn.004b7ec3
mov ebp, eax
mov eax, dword [edi + 0x48]
add esp, 4
cmp eax, 8
jge 0x41f35c
add eax, 8
add dword [edi + 0x30], ebx
mov dword [edi + 0x48], eax
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x30]
je 0x41f3ea
mov eax, dword [edi + 0x48]
cmp eax, 8
jge 0x41f379
add eax, 8
add dword [edi + 0x30], ebx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x30]
mov edx, dword [esi + 0x60]
add edx, eax
mov eax, dword [esi + 0x5c]
push edx
push eax
call fcn.004b9b8a
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x48]
add esp, 8
cmp eax, 8
jge 0x41f3a5
add eax, 8
add dword [edi + 0x30], ebx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x48]
sub eax, dword [edi + 0x30]
cmp ecx, 8
jge 0x41f3bc
add ecx, 8
add dword [edi + 0x30], ebx
mov dword [edi + 0x48], ecx
mov edx, dword [esi + 0x60]
mov ecx, dword [edi + 0x30]
add edx, dword [esi + 0x5c]
push eax
push ecx
push edx
call fcn.004b8a70
mov eax, dword [edi + 0x48]
add esp, 0xc
cmp eax, 8
jge 0x41f3e1
add eax, 8
add dword [edi + 0x30], ebx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x30]
add dword [esi + 0x60], eax
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
mov eax, dword [ecx]
push 4
push ebp
push edx
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41f43a
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
add ecx, ebx
push ecx
push edx
call fcn.004b9b8a
mov ecx, dword [esi + 0x60]
push ebx
add ecx, eax
push ebp
push ecx
mov dword [esi + 0x5c], eax
call fcn.004b8a70
add dword [esi + 0x60], ebx
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
mov ecx, dword [edx]
push 4
push ebp
push eax
call ecx
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x41f401
push ebp
call fcn.004b7f8d
mov edx, dword [esi + 0x60]
add esp, 4
cmp edx, 0x10
jbe 0x41f4bd
mov eax, dword [esi + 0x5c]
xor ebx, ebx
xor ecx, ecx
add eax, 2
lea esp, [esp]
cmp byte [eax - 2], 0xff
jne 0x41f48f
cmp byte [eax - 1], 0xff
jne 0x41f484
cmp byte [eax], 0xff
jne 0x41f487
cmp byte [eax + 1], 0xff
jne 0x41f48c
add ecx, 4
add eax, 4
cmp ecx, 0x10
jl 0x41f460
jmp 0x41f48f
inc ecx
jmp 0x41f48f
add ecx, 2
jmp 0x41f48f
add ecx, 3
mov eax, dword [esi + 0x5c]
cmp ecx, 0x10
jne 0x41f4ae
add edx, 0xfffffff0
push edx
lea edx, [eax + 0x10]
push edx
push eax
call fcn.004b8a70
add esp, 0xc
add dword [esi + 0x60], 0xfffffff0
jmp 0x41f4bd
push eax
call fcn.004b7f8d
add esp, 4
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [edi + 0x8b4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x8b8], edx
mov edx, dword [esp + 0x68]
mov dword [edi + 0x8bc], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x8c0], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x8c4], edx
mov edx, dword [esp + 0x38]
mov dword [edi + 0x8c8], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x8b0], ecx
mov dword [edi + 0x8a4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret