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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5522f8]
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 0x49dc06
cmp ecx, dword [esi + 0x34]
jge 0x49dc06
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.0049da00
cmp eax, dword [esi + 0x80]
je 0x49dc49
mov dword [esi + 0x80], eax
cmp eax, 0xffffffff
je 0x49dc36
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 0x49dc3b
or edx, 0xffffffff
or eax, edx
push eax
push edx
push 0x10000001
mov ecx, esi
call fcn.0049cf80
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [eax + 0x1c]
call fcn.0049d9b0
push 0
push eax
mov ecx, esi
call edi
test eax, eax
je 0x49dc96
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49dc88
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 0x49dc8d
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.0049da00
cmp eax, dword [esi + 0x84]
je 0x49dcc2
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 0x49dd86
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49dd86
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 0x49dd86
lea ecx, [esp + 0x10]
call fcn.004ee560
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x78], eax
jne 0x49dd0f
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x7c], eax
je 0x49dd86
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.0049d5f0
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 0x49dd4e
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 0x49dd8a
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.0049cf80
jmp 0x49dd8a
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x88], 0
je 0x49ddca
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x49ddca
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 0x49ddca
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ca740
test al, 1
je 0x49ddca
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], 0x55acf0
mov dword [esp + 0x3c], 0x55ad50
mov dword [esp + 0x40], 0x55adb0
mov dword [esp + 0x44], 0x55ae10
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 0x49e349
inc ecx
cmp ecx, 0x18
jl 0x49e330
jmp 0x49e377
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 0x49e377
lea ecx, [eax - 3]
call fcn.004ca690
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 0x49e3b4
test eax, eax
jne 0x49e3aa
lea ecx, [eax + 1]
call fcn.004ca690
mov ecx, dword [esp + 0x10]
test cx, ax
jne 0x49e3b4
mov eax, dword [esi + 0x84]
cmp eax, dword [esi + 0x90]
jne 0x49e3aa
mov eax, 1
jmp 0x49e3b8
mov dword [esi + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 0x11
ja case.default.0x49e3c2
jmp dword [eax*4 + 0x49eb6c]
mov eax, dword [esi + 0x84]
mov edx, dword [esi]
cmp eax, 0xffffffff
je 0x49e4ab
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 0x49e417
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x84]
call dword [eax + 0x4c]
test eax, eax
jne 0x49e430
cmp dword [esi + 0x90], 0xffffffff
jne 0x49e430
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.004275c5
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 0x49e460
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 0x49e486
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.0049d5f0
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.004275c5
mov esp, ebp
pop ebp
ret
mov ecx, esi
call dword [edx + 0x18]
jmp 0x49e417
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.004275c5
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 0x49e417
cmp ebx, 0xffffffff
je 0x49e417
cmp edi, 0xffffffff
je 0x49e417
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.004275c5
mov esp, ebp
pop ebp
ret
push 0
jmp 0x49e4b7
test edi, edi
je 0x49e417
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49e417
mov edi, dword [esp + 0x1c]
mov ecx, edi
sub edi, 1
js 0x49e55b
cmp ecx, eax
jle 0x49e55e
lea edi, [eax - 1]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49e583
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 0x49e550
jmp 0x49e417
push 0xffffffffffffffff
shl ebx, 0x10
mov ecx, esi
or ebx, edi
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
mov eax, dword [edi]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x49e417
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
add edi, 1
js 0x49e5c9
cmp edi, eax
jl 0x49e5cb
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x24]
test eax, eax
jne 0x49e5f0
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 0x49e5c0
jmp 0x49e417
push 1
jmp 0x49e585
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49e417
mov ecx, ebx
sub ebx, 1
js 0x49e60c
cmp ecx, eax
jle 0x49e60f
lea ebx, [eax - 1]
push ebx
mov ecx, esi
call fcn.0049d5f0
test eax, eax
jne 0x49e628
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49e601
jmp 0x49e417
push 0xffffffffffffffff
push ebx
push 0x10000003
mov ecx, esi
call fcn.0049cf80
jmp 0x49e417
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jle 0x49e417
nop dword [eax]
add ebx, 1
js 0x49e659
cmp ebx, eax
jl 0x49e65b
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0049d5f0
test eax, eax
jne 0x49e674
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jl 0x49e650
jmp 0x49e417
push 1
push ebx
push 0x10000003
mov ecx, esi
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49e417
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 0x49e6ea
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49e6a5
jmp 0x49e417
push 0xffff
jmp 0x49e585
test edi, edi
je 0x49e417
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
cmp dword [ecx + ebx*8], 0
jle 0x49e417
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 0x49e5f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49e711
jmp 0x49e417
test edi, edi
je 0x49e417
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x18], 0
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49e417
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 0x49e796
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 0x49e7c4
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 0x49e780
jmp 0x49e417
push 0xffff0000
jmp 0x49e585
test edi, edi
je 0x49e417
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
cmp dword [ecx + ebx*8 + 4], 0
jle 0x49e417
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 0x49e83b
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 0x49e7f4
jmp 0x49e417
push 0x10000
jmp 0x49e585
test edi, edi
je 0x49e417
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x49e884
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 0x49e884
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffffffffffffffff
or ebx, eax
push ebx
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
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 0x49e8e5
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x14]
push eax
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
movzx eax, di
or eax, dword [esp + 0x14]
push eax
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
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 0x49e94d
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 0x49e96c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test edx, edx
jg 0x49e920
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff
or ebx, eax
push ebx
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
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 0x49e9df
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 0x49e9fb
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + ebx*8]
jl 0x49e9b3
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 1
or ebx, eax
push ebx
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 1
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
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 0x49ea62
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 0x49ea81
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
test eax, eax
jg 0x49ea35
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0xffff0000
or ebx, eax
push ebx
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0xffff0000
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
test edi, edi
je 0x49e417
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 0x49eaf6
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 0x49eb15
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 0x49eac7
shl ebx, 0x10
mov ecx, esi
movzx eax, di
push 0x10000
or ebx, eax
push ebx
push 0x10000005
call fcn.0049cf80
jmp 0x49e417
shl ebx, 0x10
mov ecx, esi
or ebx, dword [esp + 0x18]
push 0x10000
push ebx
push 0x10000004
call fcn.0049cf80
jmp 0x49e417
mov ecx, esi
call fcn.0049d230
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
je 0x49e419
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.004275c5
mov esp, ebp
pop ebp
ret