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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x54a2f8]
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 0x49c276
cmp ecx, dword [esi + 0x34]
jge 0x49c276
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.0049c070
cmp eax, dword [esi + 0x80]
je 0x49c2b9
mov dword [esi + 0x80], eax
cmp eax, 0xffffffff
je 0x49c2a6
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 0x49c2ab
or edx, 0xffffffff
or eax, edx
push eax
push edx
push 0x10000001
mov ecx, esi
call fcn.0049b5f0
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [eax + 0x1c]
call fcn.0049c020
push 0
push eax
mov ecx, esi
call edi
test eax, eax
je 0x49c306
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49c2f8
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 0x49c2fd
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.0049c070
cmp eax, dword [esi + 0x84]
je 0x49c332
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 0x49c3f6
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49c3f6
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 0x49c3f6
lea ecx, [esp + 0x10]
call fcn.004ebde0
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x78], eax
jne 0x49c37f
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x7c], eax
je 0x49c3f6
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.0049bc60
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 0x49c3be
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 0x49c3fa
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.0049b5f0
jmp 0x49c3fa
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x88], 0
je 0x49c43a
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49c43a
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 0x49c43a
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c8580
test al, 1
je 0x49c43a
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], 0x552ad0
mov dword [esp + 0x3c], 0x552b30
mov dword [esp + 0x40], 0x552b90
mov dword [esp + 0x44], 0x552bf0
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 0x49c9b9
inc ecx
cmp ecx, 0x18
jl 0x49c9a0
jmp 0x49c9e7
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 0x49c9e7
lea ecx, [eax - 3]
call fcn.004c84d0
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 0x49ca24
test eax, eax
jne 0x49ca1a
lea ecx, [eax + 1]
call fcn.004c84d0
mov ecx, dword [esp + 0x10]
test cx, ax
jne 0x49ca24
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x90]
jne 0x49ca1a
mov eax, 1
jmp 0x49ca28
mov dword [esi + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 0x11
ja case.default.0x49ca32
jmp dword [eax*4 + 0x49d1dc]
mov eax, dword [esi + 0x84]
mov edx, dword [esi]
cmp eax, 0xffffffff
je 0x49cb1b
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 0x49ca87
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x84]
call dword [eax + 0x4c]
test eax, eax
jne 0x49caa0
cmp dword [esi + 0x90], 0xffffffff
jne 0x49caa0
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.004259b7
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 0x49cad0
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 0x49caf6
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.0049bc60
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.004259b7
mov esp, ebp
pop ebp
ret
mov ecx, esi
call dword [edx + 0x18]
jmp 0x49ca87
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.004259b7
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 0x49ca87
cmp ebx, 0xffffffff
je 0x49ca87
cmp edi, 0xffffffff
je 0x49ca87
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.004259b7
mov esp, ebp
pop ebp
ret
push 0
jmp 0x49cb27
test edi, edi
je 0x49ca87
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49ca87
mov edi, dword [esp + 0x1c]
mov ecx, edi
sub edi, 1
js 0x49cbcb
cmp ecx, eax
jle 0x49cbce
lea edi, [eax - 1]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49cbf3
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 0x49cbc0
jmp 0x49ca87
push 0xffffffffffffffff
shl ebx, 0x10
mov ecx, esi
or ebx, edi
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49ca87
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
add edi, 1
js 0x49cc39
cmp edi, eax
jl 0x49cc3b
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49cc60
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 0x49cc30
jmp 0x49ca87
push 1
jmp 0x49cbf5
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49ca87
mov ecx, ebx
sub ebx, 1
js 0x49cc7c
cmp ecx, eax
jle 0x49cc7f
lea ebx, [eax - 1]
push ebx
mov ecx, esi
call fcn.0049bc60
test eax, eax
jne 0x49cc98
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49cc71
jmp 0x49ca87
push 0xffffffffffffffff
push ebx
push 0x10000003
mov ecx, esi
call fcn.0049b5f0
jmp 0x49ca87
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49ca87
nop dword [eax]
add ebx, 1
js 0x49ccc9
cmp ebx, eax
jl 0x49cccb
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0049bc60
test eax, eax
jne 0x49cce4
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49ccc0
jmp 0x49ca87
push 1
push ebx
push 0x10000003
mov ecx, esi
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49ca87
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 0x49cd5a
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49cd15
jmp 0x49ca87
push 0xffff
jmp 0x49cbf5
test edi, edi
je 0x49ca87
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49ca87
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 0x49cc60
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49cd81
jmp 0x49ca87
test edi, edi
je 0x49ca87
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x18], 0
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49ca87
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 0x49ce06
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 0x49ce34
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 0x49cdf0
jmp 0x49ca87
push 0xffff0000
jmp 0x49cbf5
test edi, edi
je 0x49ca87
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49ca87
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 0x49ceab
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 0x49ce64
jmp 0x49ca87
push 0x10000
jmp 0x49cbf5
test edi, edi
je 0x49ca87
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x49cef4
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 0x49cef4
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffffffffffffffff
or ebx, eax
push ebx
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
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 0x49cf55
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x14]
push eax
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
movzx eax, di
or eax, dword [esp + 0x14]
push eax
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
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 0x49cfbd
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 0x49cfdc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test edx, edx
jg 0x49cf90
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff
or ebx, eax
push ebx
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
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 0x49d04f
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 0x49d06b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49d023
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 1
or ebx, eax
push ebx
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 1
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
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 0x49d0d2
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 0x49d0f1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
test eax, eax
jg 0x49d0a5
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff0000
or ebx, eax
push ebx
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff0000
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
test edi, edi
je 0x49ca87
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 0x49d166
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 0x49d185
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 0x49d137
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0x10000
or ebx, eax
push ebx
push 0x10000005
call fcn.0049b5f0
jmp 0x49ca87
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0x10000
push ebx
push 0x10000004
call fcn.0049b5f0
jmp 0x49ca87
mov ecx, esi
call fcn.0049b8a0
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
je 0x49ca89
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.004259b7
mov esp, ebp
pop ebp
ret