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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x70], 0
mov dword [esi + 0x20], edx
mov ecx, dword [edx + 0x4c]
mov ecx, dword [ecx + eax*4]
imul eax, ecx, 0x15d4
add eax, dword [edx + 0x6c]
imul edx, ecx, 0x350
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x18]
add edx, dword [eax + 8]
mov dword [esp + 0x40], edx
cmp dword [edx + 0x10], 0
jle 0x49e783
xor edi, edi
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x15d0]
mov eax, dword [ebp + 0xc]
add esi, ebx
mov ebx, dword [edx + 0x14]
add ebx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax]
mov eax, dword [edx]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax + 4]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 8]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax + 4]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x10], eax
imul eax, eax, 0x7c
push eax
call sub.MSVCRT.dll_malloc
xor esi, esi
mov dword [ebx + 0x14], eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x10], esi
jle 0x49e74d
nop
mov ecx, dword [ebx + 0x10]
mov edx, 1
mov eax, dword [ebx]
sub ecx, esi
dec eax
imul edi, esi, 0x7c
dec ecx
shl edx, cl
add eax, edx
mov dword [esp + 0x58], ecx
sar eax, cl
add edi, dword [ebx + 0x14]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], edx
mov dword [edi], eax
mov eax, dword [ebx + 4]
dec eax
add eax, edx
sar eax, cl
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
dec eax
add eax, edx
sar eax, cl
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor ebx, ebx
dec eax
add eax, edx
sar eax, cl
test esi, esi
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
setne bl
lea ebx, [ebx*2 + 1]
mov dword [edi + 0x18], ebx
test byte [eax], 1
je 0x49e257
mov ecx, dword [eax + esi*4 + 0x32c]
mov eax, dword [eax + esi*4 + 0x3b0]
mov dword [esp + 0x18], eax
jmp 0x49e260
mov ecx, 0xf
mov dword [esp + 0x18], ecx
mov edx, dword [edi]
mov eax, edx
mov esi, dword [edi + 0xc]
sar eax, cl
shl eax, cl
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
sar eax, cl
shl eax, cl
mov dword [esp + 0x30], eax
mov eax, 1
shl eax, cl
dec eax
add esi, eax
sar esi, cl
shl esi, cl
cmp edx, edi
mov edx, dword [esp + 0x2c]
jne 0x49e29f
xor eax, eax
jmp 0x49e2b9
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
dec eax
add eax, edi
sar eax, cl
shl eax, cl
sub eax, edx
sar eax, cl
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0xc]
cmp dword [edi + 4], eax
mov eax, dword [esp + 0x30]
jne 0x49e2d0
xor esi, esi
jmp 0x49e2d4
sub esi, eax
sar esi, cl
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x49e2e5
mov edx, dword [esp + 0x14]
jmp 0x49e301
inc edx
inc eax
sar edx, 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
sar eax, 1
dec edx
dec ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
cmp eax, edx
jl 0x49e314
mov dword [esp + 0x34], edx
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x49e327
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x50], eax
test ebx, ebx
jle 0x49e737
add edi, 0x38
mov dword [esp + 0x10], edi
lea esp, [esp]
test esi, esi
jne 0x49e34d
xor ebx, ebx
xor eax, eax
mov dword [edi - 0xc], ebx
jmp 0x49e366
lea ebx, [eax + 1]
mov dword [edi - 0xc], ebx
cmp ebx, 1
je 0x49e361
cmp ebx, 3
je 0x49e361
xor eax, eax
jmp 0x49e366
mov eax, 1
cmp ebx, 2
je 0x49e378
mov dword [esp + 0x48], 0
cmp ebx, 3
jne 0x49e380
mov dword [esp + 0x48], 1
mov esi, dword [esp + 0x24]
test ebx, ebx
jne 0x49e3bc
mov edx, dword [esp + 0x20]
mov ecx, esi
dec ecx
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [esp + 0x58]
sar eax, cl
mov dword [edi - 0x1c], eax
mov eax, dword [edx + 4]
dec eax
add eax, esi
dec esi
sar eax, cl
mov dword [edi - 0x18], eax
mov eax, dword [edx + 8]
add eax, esi
sar eax, cl
mov dword [edi - 0x14], eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x24]
dec edx
jmp 0x49e42f
mov ecx, dword [esp + 0x58]
mov edi, esi
imul edi, eax
inc ecx
mov eax, dword [esp + 0x20]
mov edx, 1
imul esi, dword [esp + 0x48]
shl edx, cl
mov eax, dword [eax]
sub edx, edi
dec eax
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, cl
mov dword [edx - 0x1c], eax
mov edx, 1
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, esi
mov eax, dword [eax + 4]
dec eax
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, cl
mov dword [edx - 0x18], eax
mov edx, 1
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, edi
mov edi, dword [esp + 0x10]
mov eax, dword [eax + 8]
dec eax
add eax, edx
mov edx, 1
sar eax, cl
mov dword [edi - 0x14], eax
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, esi
mov eax, dword [eax + 0xc]
dec eax
mov esi, dword [esp + 0x1c]
add eax, edx
sar eax, cl
mov dword [edi - 0x10], eax
test esi, esi
je 0x49e44a
mov eax, dword [esp + 0x50]
lea eax, [eax + esi*2]
add esi, 0xfffffffe
add esi, eax
mov eax, dword [esp + 0x28]
push ebx
cmp dword [eax + 0x14], 0
jne 0x49e45c
call fcn.004a3240
jmp 0x49e461
call fcn.004a3220
mov edx, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov ebx, dword [esp + 0x28]
mov eax, dword [eax + 0x18]
mov eax, dword [edx + eax + 0x18]
sub eax, dword [ebx + esi*8 + 0x1c]
add eax, ecx
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
fstp qword [esp + 0x88]
fld qword [0x4e3b20]
fld qword [esp + 0x88]
call sub.MSVCRT.dll__CIpow
fild dword [ebx + esi*8 + 0x20]
fstp qword [esp + 0x88]
fld qword [esp + 0x88]
fmul qword [0x50aaa8]
fld1
faddp st(1)
fmulp st(1)
fmul qword [0x4e3180]
fstp dword [edi]
mov eax, dword [ebx + 0x324]
dec eax
add eax, dword [ebx + esi*8 + 0x1c]
mov ebx, dword [esp + 0x4c]
mov dword [edi - 4], eax
mov eax, dword [ebx + 0x14]
imul eax, dword [ebx + 0x10]
lea eax, [eax + eax*8]
shl eax, 2
push eax
call sub.MSVCRT.dll_malloc
mov dword [edi - 8], eax
xor edx, edx
mov eax, dword [ebx + 0x14]
add esp, 4
imul eax, dword [ebx + 0x10]
mov dword [esp + 0x6c], edx
test eax, eax
jle 0x49e71a
mov ecx, dword [esp + 0x14]
mov esi, 1
shl esi, cl
mov eax, 1
mov ecx, dword [esp + 0x18]
shl eax, cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x80], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x88], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x49e550
mov eax, edx
cdq
idiv dword [ebx + 0x10]
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x80]
imul ecx, esi
imul edi, eax
add ecx, dword [esp + 0x2c]
add edi, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
lea edx, [ecx + esi]
lea esi, [edi + eax]
mov eax, dword [esp + 0x10]
mov ebx, dword [eax - 8]
add ebx, dword [esp + 0x48]
mov eax, dword [eax - 0x1c]
cmp ecx, eax
jg 0x49e591
mov ecx, eax
mov dword [esp + 0x3c], eax
mov dword [ebx], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0x18]
cmp edi, eax
jg 0x49e5a0
mov edi, eax
mov dword [ebx + 4], edi
mov eax, dword [ecx - 0x14]
cmp edx, eax
jl 0x49e5ac
mov edx, eax
mov dword [ebx + 8], edx
mov eax, dword [ecx - 0x10]
cmp esi, eax
jl 0x49e5b8
mov esi, eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sar eax, cl
shl eax, cl
mov ecx, dword [esp + 0x38]
sar edi, cl
shl edi, cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x5c]
dec edi
mov dword [esp + 0x3c], eax
add edi, edx
mov dword [ebx + 0xc], esi
sar edi, cl
shl edi, cl
sub edi, eax
mov eax, dword [esp + 0x44]
dec eax
sar edi, cl
add esi, eax
mov dword [ebx + 0x10], edi
mov eax, dword [esp + 0x38]
mov ecx, eax
sar esi, cl
shl esi, cl
sub esi, dword [esp + 0x60]
sar esi, cl
mov eax, esi
mov dword [ebx + 0x14], esi
imul eax, edi
imul eax, eax, 0x2c
push eax
call sub.MSVCRT.dll_malloc
push esi
push edi
mov dword [ebx + 0x18], eax
call fcn.004a7540
push dword [ebx + 0x14]
mov dword [ebx + 0x1c], eax
push dword [ebx + 0x10]
call fcn.004a7540
mov dword [ebx + 0x20], eax
xor ecx, ecx
mov eax, dword [ebx + 0x10]
add esp, 0x14
imul eax, dword [ebx + 0x14]
mov dword [esp + 0x64], ecx
test eax, eax
jle 0x49e6ee
xor esi, esi
mov dword [esp + 0x68], esi
mov edi, edi
mov eax, ecx
cdq
idiv dword [ebx + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x5c]
imul ecx, dword [esp + 0x44]
imul edx, eax
add ecx, dword [esp + 0x60]
add edx, dword [esp + 0x3c]
lea edi, [edx + eax]
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x18]
add eax, esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [ebx]
cmp edx, esi
jg 0x49e696
mov edx, esi
mov dword [eax + 8], edx
mov edx, dword [ebx + 4]
cmp ecx, edx
jg 0x49e6a2
mov ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 8]
cmp edi, ecx
jl 0x49e6ae
mov edi, ecx
mov edx, dword [esp + 0x84]
mov dword [eax + 0x10], edi
mov ecx, dword [ebx + 0xc]
cmp edx, ecx
jl 0x49e6c1
mov edx, ecx
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
inc ecx
mov dword [eax + 0x14], edx
add esi, 0x2c
mov dword [eax + 0x28], 0
mov eax, dword [ebx + 0x10]
imul eax, dword [ebx + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], esi
cmp ecx, eax
jl 0x49e650
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
add dword [esp + 0x48], 0x24
inc edx
mov esi, dword [esp + 0x88]
mov eax, dword [ebx + 0x14]
imul eax, dword [ebx + 0x10]
mov dword [esp + 0x6c], edx
cmp edx, eax
jl 0x49e550
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
add edi, 0x20
mov esi, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], edi
cmp eax, dword [ebx + 0x18]
jl 0x49e340
mov ebx, dword [esp + 0x20]
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [ebx + 0x10]
jl 0x49e1e0
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x70]
add edi, 0x30
mov edx, dword [esp + 0x40]
inc eax
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
add ebx, 0x434
add ecx, 0x20
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], edi
cmp eax, dword [edx + 0x10]
jl 0x49e142
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret