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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5462f8]
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 0x49a766
cmp ecx, dword [esi + 0x34]
jge 0x49a766
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.0049a560
cmp eax, dword [esi + 0x80]
je 0x49a7a9
mov dword [esi + 0x80], eax
cmp eax, 0xffffffff
je 0x49a796
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 0x49a79b
or edx, 0xffffffff
or eax, edx
push eax
push edx
push 0x10000001
mov ecx, esi
call fcn.00499ae0
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [eax + 0x1c]
call fcn.0049a510
push 0
push eax
mov ecx, esi
call edi
test eax, eax
je 0x49a7f6
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49a7e8
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 0x49a7ed
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.0049a560
cmp eax, dword [esi + 0x84]
je 0x49a822
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 0x49a8e6
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49a8e6
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 0x49a8e6
lea ecx, [esp + 0x10]
call fcn.004e9cc0
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x78], eax
jne 0x49a86f
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x7c], eax
je 0x49a8e6
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.0049a150
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 0x49a8ae
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 0x49a8ea
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.00499ae0
jmp 0x49a8ea
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x88], 0
je 0x49a92a
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49a92a
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 0x49a92a
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c6970
test al, 1
je 0x49a92a
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], 0x54ead0
mov dword [esp + 0x3c], 0x54eb30
mov dword [esp + 0x40], 0x54eb90
mov dword [esp + 0x44], 0x54ebf0
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 0x49aea9
inc ecx
cmp ecx, 0x18
jl 0x49ae90
jmp 0x49aed7
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 0x49aed7
lea ecx, [eax - 3]
call fcn.004c68c0
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 0x49af14
test eax, eax
jne 0x49af0a
lea ecx, [eax + 1]
call fcn.004c68c0
mov ecx, dword [esp + 0x10]
test cx, ax
jne 0x49af14
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x90]
jne 0x49af0a
mov eax, 1
jmp 0x49af18
mov dword [esi + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 0x11
ja case.default.0x49af22
jmp dword [eax*4 + 0x49b6cc]
mov eax, dword [esi + 0x84]
mov edx, dword [esi]
cmp eax, 0xffffffff
je 0x49b00b
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 0x49af77
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x84]
call dword [eax + 0x4c]
test eax, eax
jne 0x49af90
cmp dword [esi + 0x90], 0xffffffff
jne 0x49af90
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.00424a87
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 0x49afc0
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 0x49afe6
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.0049a150
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.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, esi
call dword [edx + 0x18]
jmp 0x49af77
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.00424a87
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 0x49af77
cmp ebx, 0xffffffff
je 0x49af77
cmp edi, 0xffffffff
je 0x49af77
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.00424a87
mov esp, ebp
pop ebp
ret
push 0
jmp 0x49b017
test edi, edi
je 0x49af77
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49af77
mov edi, dword [esp + 0x1c]
mov ecx, edi
sub edi, 1
js 0x49b0bb
cmp ecx, eax
jle 0x49b0be
lea edi, [eax - 1]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b0e3
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 0x49b0b0
jmp 0x49af77
push 0xffffffffffffffff
shl ebx, 0x10
mov ecx, esi
or ebx, edi
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49af77
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
add edi, 1
js 0x49b129
cmp edi, eax
jl 0x49b12b
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49b150
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 0x49b120
jmp 0x49af77
push 1
jmp 0x49b0e5
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49af77
mov ecx, ebx
sub ebx, 1
js 0x49b16c
cmp ecx, eax
jle 0x49b16f
lea ebx, [eax - 1]
push ebx
mov ecx, esi
call fcn.0049a150
test eax, eax
jne 0x49b188
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49b161
jmp 0x49af77
push 0xffffffffffffffff
push ebx
push 0x10000003
mov ecx, esi
call fcn.00499ae0
jmp 0x49af77
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49af77
nop dword [eax]
add ebx, 1
js 0x49b1b9
cmp ebx, eax
jl 0x49b1bb
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0049a150
test eax, eax
jne 0x49b1d4
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49b1b0
jmp 0x49af77
push 1
push ebx
push 0x10000003
mov ecx, esi
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49af77
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 0x49b24a
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49b205
jmp 0x49af77
push 0xffff
jmp 0x49b0e5
test edi, edi
je 0x49af77
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49af77
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 0x49b150
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49b271
jmp 0x49af77
test edi, edi
je 0x49af77
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x18], 0
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49af77
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 0x49b2f6
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 0x49b324
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 0x49b2e0
jmp 0x49af77
push 0xffff0000
jmp 0x49b0e5
test edi, edi
je 0x49af77
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49af77
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 0x49b39b
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 0x49b354
jmp 0x49af77
push 0x10000
jmp 0x49b0e5
test edi, edi
je 0x49af77
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x49b3e4
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 0x49b3e4
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffffffffffffffff
or ebx, eax
push ebx
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
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 0x49b445
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x14]
push eax
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
movzx eax, di
or eax, dword [esp + 0x14]
push eax
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
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 0x49b4ad
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 0x49b4cc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test edx, edx
jg 0x49b480
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff
or ebx, eax
push ebx
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
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 0x49b53f
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 0x49b55b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49b513
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 1
or ebx, eax
push ebx
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 1
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
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 0x49b5c2
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 0x49b5e1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
test eax, eax
jg 0x49b595
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff0000
or ebx, eax
push ebx
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff0000
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
test edi, edi
je 0x49af77
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 0x49b656
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 0x49b675
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 0x49b627
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0x10000
or ebx, eax
push ebx
push 0x10000005
call fcn.00499ae0
jmp 0x49af77
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0x10000
push ebx
push 0x10000004
call fcn.00499ae0
jmp 0x49af77
mov ecx, esi
call fcn.00499d90
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
je 0x49af79
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.00424a87
mov esp, ebp
pop ebp
ret