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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5472f8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x3c]
or ebx, 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ebx
test ecx, ecx
js 0x49ac56
cmp ecx, dword [esi + 0x34]
jge 0x49ac56
imul eax, ecx, 0x34
mov ebx, ecx
add eax, dword [esi + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
push 0
push 0
push 0
mov ecx, esi
call fcn.0049aa50
cmp eax, dword [esi + 0x80]
je 0x49ac99
mov dword [esi + 0x80], eax
cmp eax, 0xffffffff
je 0x49ac86
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
mov edx, dword [eax + ecx*4 + 4]
mov eax, dword [eax + ecx*4 + 8]
jmp 0x49ac8b
or edx, 0xffffffff
or eax, edx
push eax
push edx
push 0x10000001
mov ecx, esi
call fcn.00499fd0
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [eax + 0x1c]
call fcn.0049aa00
push 0
push eax
mov ecx, esi
call edi
test eax, eax
je 0x49ace6
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49acd8
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
mov edx, dword [eax + ecx*4 + 4]
shl edx, 0x10
or edx, dword [eax + ecx*4 + 8]
mov eax, dword [eax + ecx*4 + 0xc]
xor ecx, ecx
cmp dword [eax + 0x14], 0xffffffff
setne cl
jmp 0x49acdd
or edx, 0xffffffff
xor ecx, ecx
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
push 1
push 1
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0049aa50
cmp eax, dword [esi + 0x84]
je 0x49ad12
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x64], eax
cmp dword [esi + 0x88], 0
je 0x49add6
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49add6
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
imul ecx, dword [eax + ecx*4 + 4], 0x34
mov eax, dword [esi + 0x38]
cmp dword [ecx + eax + 0x10], 0
je 0x49add6
lea ecx, [esp + 0x10]
call fcn.004ea7b0
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x78], eax
jne 0x49ad5f
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x7c], eax
je 0x49add6
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
push dword [eax + ecx*4 + 4]
mov ecx, esi
call fcn.0049a640
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
push dword [eax + ecx*4 + 8]
push dword [eax + ecx*4 + 4]
mov ecx, esi
call edx
mov edi, dword [esp + 0x24]
mov ecx, eax
test edi, edi
je 0x49ad9e
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x7c], eax
test ecx, ecx
je 0x49adda
mov eax, dword [esi + 0x74]
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 4]
shl eax, 0x10
or eax, dword [ecx + 8]
mov ecx, esi
push eax
push 0x10000004
call fcn.00499fd0
jmp 0x49adda
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x88], 0
je 0x49ae1a
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49ae1a
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
imul ecx, dword [eax + ecx*4 + 4], 0x34
mov eax, dword [esi + 0x38]
cmp dword [ecx + eax + 0x14], 0
je 0x49ae1a
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c6f50
test al, 1
je 0x49ae1a
or dword [esi + 0x8c], 1
mov dword [esp + 0x1c8], 1
mov dword [esp + 0x1cc], 2
mov dword [esp + 0x1d0], 4
mov dword [esp + 0x1d4], 0x10
mov dword [esp + 0x1d8], 0x20
mov dword [esp + 0x1dc], 0x40
mov dword [esp + 0x1e0], 0x80
mov dword [esp + 0x1e4], 0x100
mov dword [esp + 0x1e8], 0x200
mov dword [esp + 0x1ec], 0x1000
mov dword [esp + 0x1f0], 0x2000
mov dword [esp + 0x1f4], 0x4000
mov dword [esp + 0x1f8], 0x8000
mov dword [esp + 0x1fc], 0x10000
mov dword [esp + 0x200], 0x20000
mov dword [esp + 0x204], 0x40000
mov dword [esp + 0x208], 0x80000
mov dword [esp + 0x20c], 0x100000
mov dword [esp + 0x210], 0x200000
mov dword [esp + 0x214], 0x400000
mov dword [esp + 0x218], 0x800000
mov dword [esp + 0x21c], 0x1000000
mov dword [esp + 0x220], 0x2000000
mov dword [esp + 0x224], 0x40000000
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 3
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], 7
mov dword [esp + 0x70], 8
mov dword [esp + 0x74], 5
mov dword [esp + 0x78], 6
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x13
mov dword [esp + 0xa8], 1
mov dword [esp + 0xac], 2
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 3
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 5
mov dword [esp + 0xd0], 6
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd8], 8
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0x13
mov dword [esp + 0x108], 1
mov dword [esp + 0x10c], 2
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 3
mov dword [esp + 0x128], 4
mov edx, dword [esi + 0x48]
lea eax, [esp + 0x48]
mov dword [esp + 0x28], eax
not edx
and edx, dword [esi + 0x8c]
lea eax, [esp + 0xa8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x168]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x12c], 0xb
xor ecx, ecx
mov dword [esp + 0x130], 0xc
mov dword [esp + 0x134], 9
mov dword [esp + 0x138], 0xa
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0x13
mov dword [esp + 0x168], 1
mov dword [esp + 0x16c], 2
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], 3
mov dword [esp + 0x188], 4
mov dword [esp + 0x18c], 9
mov dword [esp + 0x190], 0xa
mov dword [esp + 0x194], 0xb
mov dword [esp + 0x198], 0xc
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0x13
mov dword [esp + 0x38], 0x54fad0
mov dword [esp + 0x3c], 0x54fb30
mov dword [esp + 0x40], 0x54fb90
mov dword [esp + 0x44], 0x54fbf0
mov dword [esp + 0x18], eax
nop dword [eax]
nop dword [eax + eax]
mov dword [esp + 0x10], 0x8000
test dword [esp + ecx*4 + 0x1c8], edx
jne 0x49b399
inc ecx
cmp ecx, 0x18
jl 0x49b380
jmp 0x49b3c7
mov eax, dword [esi + 0x4c]
mov eax, dword [esp + eax*4 + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
cmp eax, 0x13
jne 0x49b3c7
lea ecx, [eax - 3]
call fcn.004c6ea0
and ax, word [esp + 0x10]
movzx eax, ax
neg eax
sbb eax, eax
add eax, 8
mov dword [esp + 0x18], eax
cmp dword [esi + 0x90], 0xffffffff
je 0x49b404
test eax, eax
jne 0x49b3fa
lea ecx, [eax + 1]
call fcn.004c6ea0
mov ecx, dword [esp + 0x10]
test cx, ax
jne 0x49b404
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x90]
jne 0x49b3fa
mov eax, 1
jmp 0x49b408
mov dword [esi + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 0x11
ja case.default.0x49b412
jmp dword [eax*4 + 0x49bbbc]
mov eax, dword [esi + 0x84]
mov edx, dword [esi]
cmp eax, 0xffffffff
je 0x49b4fb
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
push dword [eax + ecx*4 + 8]
push dword [eax + ecx*4 + 4]
mov ecx, esi
call dword [edx + 0x28]
test eax, eax
je 0x49b467
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x84]
call dword [eax + 0x4c]
test eax, eax
jne 0x49b480
cmp dword [esi + 0x90], 0xffffffff
jne 0x49b480
mov eax, dword [esi + 0x84]
mov dword [esi + 0x90], eax
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
push 1
push dword [esi + 0x84]
call dword [eax + 0x30]
cmp dword [esi + 0x50], 0
je 0x49b4b0
mov eax, dword [esi + 0x84]
mov edx, dword [esi]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x5c]
push dword [eax + ecx*4 + 8]
push dword [eax + ecx*4 + 4]
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49b4d6
mov ecx, dword [esi + 0x84]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x5c]
push dword [ecx + edx*4 + 4]
mov ecx, esi
call fcn.0049a640
mov ebx, dword [esp + 0x10]
mov eax, ebx
mov dword [esi + 0x90], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov ecx, esi
call dword [edx + 0x18]
jmp 0x49b467
push 1
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esp + 0x1c]
push edi
push ebx
call dword [eax + 0x28]
test eax, eax
je 0x49b467
cmp ebx, 0xffffffff
je 0x49b467
cmp edi, 0xffffffff
je 0x49b467
mov eax, dword [esi]
mov ecx, esi
push 0
push edi
push ebx
call dword [eax + 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
push 0
jmp 0x49b507
test edi, edi
je 0x49b467
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49b467
mov edi, dword [esp + 0x1c]
mov ecx, edi
sub edi, 1
js 0x49b5ab
cmp ecx, eax
jle 0x49b5ae
lea edi, [eax - 1]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b5d3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
cmp ecx, eax
jl 0x49b5a0
jmp 0x49b467
push 0xffffffffffffffff
shl ebx, 0x10
mov ecx, esi
or ebx, edi
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49b467
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
add edi, 1
js 0x49b619
cmp edi, eax
jl 0x49b61b
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b640
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
cmp ecx, eax
jl 0x49b610
jmp 0x49b467
push 1
jmp 0x49b5d5
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49b467
mov ecx, ebx
sub ebx, 1
js 0x49b65c
cmp ecx, eax
jle 0x49b65f
lea ebx, [eax - 1]
push ebx
mov ecx, esi
call fcn.0049a640
test eax, eax
jne 0x49b678
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49b651
jmp 0x49b467
push 0xffffffffffffffff
push ebx
push 0x10000003
mov ecx, esi
call fcn.00499fd0
jmp 0x49b467
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49b467
nop dword [eax]
add ebx, 1
js 0x49b6a9
cmp ebx, eax
jl 0x49b6ab
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0049a640
test eax, eax
jne 0x49b6c4
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49b6a0
jmp 0x49b467
push 1
push ebx
push 0x10000003
mov ecx, esi
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49b467
mov edi, dword [ecx + ebx*8]
mov eax, dword [esp + 0x1c]
cdq
idiv edi
mov eax, dword [esp + 0x1c]
mov ecx, edx
cdq
idiv edi
test ecx, ecx
cmovle ecx, edi
imul edi, eax
mov eax, dword [esi]
dec ecx
add edi, ecx
mov ecx, esi
push edi
push ebx
mov dword [esp + 0x24], edi
call dword [eax + 0x24]
test eax, eax
jne 0x49b73a
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49b6f5
jmp 0x49b467
push 0xffff
jmp 0x49b5d5
test edi, edi
je 0x49b467
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49b467
mov edi, dword [ecx + ebx*8]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
cdq
idiv edi
lea eax, [edx + 1]
cmp eax, edi
mov edi, dword [esp + 0x1c]
cmovl ecx, eax
mov eax, dword [esi]
sub ecx, edx
add edi, ecx
mov ecx, esi
push edi
push ebx
mov dword [esp + 0x24], edi
call dword [eax + 0x24]
test eax, eax
jne 0x49b640
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49b761
jmp 0x49b467
test edi, edi
je 0x49b467
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x18], 0
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49b467
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
mov eax, dword [ecx + ebx*8]
mov dword [esp + 0x10], eax
mov eax, edi
cdq
idiv dword [esp + 0x10]
test eax, eax
jg 0x49b7e6
mov eax, dword [ecx + ebx*8 + 4]
lea edi, [eax - 1]
mov ecx, esi
imul edi, dword [esp + 0x10]
mov eax, dword [esi]
add edi, edx
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b814
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + ebx*8 + 4]
jl 0x49b7d0
jmp 0x49b467
push 0xffff0000
jmp 0x49b5d5
test edi, edi
je 0x49b467
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49b467
mov edi, dword [esp + 0x1c]
mov ecx, dword [ecx + ebx*8]
mov eax, edi
cdq
xor edi, edi
idiv ecx
mov esi, dword [esp + 0x18]
inc eax
cmp eax, dword [esi + ebx*8 + 4]
mov esi, dword [esp + 0x20]
cmovl edi, eax
imul edi, ecx
mov ecx, esi
mov eax, dword [esi]
add edi, edx
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b88b
mov ecx, dword [esi + 0x54]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8 + 4]
jl 0x49b844
jmp 0x49b467
push 0x10000
jmp 0x49b5d5
test edi, edi
je 0x49b467
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x49b8d4
mov eax, dword [esi]
lea ecx, [edi - 1]
push ecx
mov dword [esp + 0x24], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
test eax, eax
je 0x49b8d4
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffffffffffffffff
or ebx, eax
push ebx
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov edi, dword [esp + 0x1c]
mov edx, ebx
mov eax, dword [esi]
shl edx, 0x10
mov dword [esp + 0x10], edx
lea ecx, [edi + 1]
push ecx
mov dword [esp + 0x24], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
mov ecx, esi
push 1
test eax, eax
je 0x49b935
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x14]
push eax
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
movzx eax, di
or eax, dword [esp + 0x14]
push eax
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov eax, dword [esi + 0x54]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax + ebx*8]
mov eax, edi
cdq
idiv ecx
mov dword [esp + 0x10], eax
test edx, edx
jle 0x49b99d
nop dword [eax + eax]
mov ecx, dword [esi + 0x54]
dec edx
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + ebx*8]
imul ecx, eax
mov eax, dword [esi]
add ecx, edx
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b9bc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test edx, edx
jg 0x49b970
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff
or ebx, eax
push ebx
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov ecx, dword [esi + 0x54]
mov edi, dword [esp + 0x1c]
mov eax, edi
cdq
mov ecx, dword [ecx + ebx*8]
idiv ecx
mov dword [esp + 0x20], eax
lea eax, [edx + 1]
mov dword [esp + 0x10], eax
cmp eax, ecx
jge 0x49ba2f
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + ebx*8]
imul ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esi]
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49ba4b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49ba03
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 1
or ebx, eax
push ebx
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 1
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov eax, dword [esi + 0x54]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax + ebx*8]
mov eax, edi
cdq
idiv ecx
mov dword [esp + 0x10], edx
test eax, eax
jle 0x49bab2
mov ecx, dword [esi + 0x54]
dec eax
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + ebx*8]
imul ecx, eax
mov eax, dword [esi]
add ecx, edx
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49bad1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
test eax, eax
jg 0x49ba85
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff0000
or ebx, eax
push ebx
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff0000
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
test edi, edi
je 0x49b467
mov eax, dword [esi + 0x54]
mov edi, dword [esp + 0x1c]
lea ecx, [eax + ebx*8]
mov eax, edi
cdq
idiv dword [ecx]
inc eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 4]
jge 0x49bb46
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + ebx*8]
imul ecx, eax
mov eax, dword [esi]
add ecx, edx
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49bb65
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8 + 4]
jl 0x49bb17
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0x10000
or ebx, eax
push ebx
push 0x10000005
call fcn.00499fd0
jmp 0x49b467
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0x10000
push ebx
push 0x10000004
call fcn.00499fd0
jmp 0x49b467
mov ecx, esi
call fcn.0049a280
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
je 0x49b469
mov edx, dword [esi]
mov ecx, esi
push 0
push eax
call dword [edx + 0x30]
mov ecx, dword [esp + 0x22c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret