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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x54]
imul ecx, esi, 0x350
mov dword [esp + 0x38], 0
mov eax, dword [edi + 0x18]
mov dword [edi + 0x2c], esi
add ecx, dword [eax + 8]
mov eax, dword [edi + 0x20]
mov dword [edi + 0x24], ecx
imul ecx, esi, 0x15d4
add ecx, dword [eax + 0x6c]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x28], ecx
mov dword [esp + 0x10], eax
call fcn.004a37e0
mov ecx, dword [edi + 0x20]
fstp qword [esp + 0x48]
mov eax, dword [ecx + 0x48]
imul eax, dword [ecx + 0x44]
push eax
lea eax, [esi + 1]
push eax
push str.tile__d_of__d_n
push 4
push dword [edi + 0x14]
call fcn.00497cc0
mov ebx, dword [esp + 0x78]
add esp, 0x14
test ebx, ebx
je 0x49c56a
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x64], ecx
mov dword [esp + 0x20], ebp
cmp dword [ebx + 0x34], ecx
jle 0x49c53e
xor esi, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov eax, dword [edi + 0x20]
xor edi, edi
mov eax, dword [eax + 0x6c]
mov edx, dword [eax + 0x15d0]
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x14]
add ecx, esi
mov dword [esp + 0x2c], ecx
cmp dword [ecx + 0x10], edi
jle 0x49c50f
mov eax, dword [esp + 0x60]
lea ebp, [edx + 0x3b0]
lea esi, [eax + eax*8]
shl esi, 4
xor eax, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
lea esi, [esi*4 + 0x11c]
nop
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebx + 0x58]
add edx, eax
mov eax, dword [edx + 0x10]
mov dword [ecx + esi - 0x108], eax
mov ecx, dword [ebx + 0x58]
mov eax, dword [edx + 0x14]
mov dword [esi + ecx - 0x84], eax
mov eax, dword [edx + 0x14]
imul eax, dword [edx + 0x10]
add dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
test byte [eax], 1
je 0x49c4d4
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebp - 0x84]
mov edx, dword [esp + 0x30]
add edx, edi
mov dword [esi + ecx], eax
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebp]
mov dword [ecx + edx*4 + 0x1a0], eax
jmp 0x49c4e8
mov eax, dword [ebx + 0x58]
mov dword [esi + eax], 0xf
mov eax, dword [ebx + 0x58]
mov dword [esi + eax], 0xf
mov ecx, dword [esp + 0x2c]
inc edi
mov eax, dword [esp + 0x24]
add ebp, 4
add eax, 0x7c
add esi, 4
mov dword [esp + 0x24], eax
cmp edi, dword [ecx + 0x10]
jl 0x49c480
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc ebp
mov edi, dword [esp + 0x54]
add ecx, 0x434
add esi, 0x20
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
cmp ebp, dword [ebx + 0x34]
jl 0x49c434
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov eax, dword [ebx + 0x38]
imul eax, ecx
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.MSVCRT.dll_malloc
mov ecx, dword [ebx + 0x58]
lea edx, [esi + esi*8]
add esp, 4
shl edx, 6
mov dword [edx + ecx + 0x224], eax
mov dword [ebx + 8], 0
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x14]
call fcn.004a3860
push ebx
push dword [esp + 0x20]
mov edi, eax
push esi
push dword [esp + 0x74]
push dword [esp + 0x74]
push edi
call fcn.004a40e0
push edi
mov esi, eax
call fcn.004a43b0
mov ebx, dword [esp + 0x7c]
add esp, 0x28
cmp esi, 0xfffffc19
jne 0x49c5bf
push str.tcd_decode:_incomplete_bistream_n
push 1
push dword [ebx + 0x14]
mov dword [esp + 0x44], 1
call fcn.00497cc0
add esp, 0xc
call fcn.004a37e0
push dword [ebx + 0x14]
fstp qword [esp + 0x44]
call fcn.004a4fc0
mov ecx, dword [esp + 0x14]
xor ebp, ebp
add esp, 4
mov dword [esp + 0x60], eax
cmp dword [ecx + 0x10], ebp
jle 0x49c644
xor edi, edi
xor ebx, ebx
mov esi, dword [ecx + 0x14]
mov ecx, dword [esi + ebx + 0xc]
add esi, ebx
push 0x10
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub ecx, dword [esi + 4]
imul ecx, eax
lea eax, [ecx*4 + 0xc]
push eax
call fcn.004176d3
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x15d0]
add eax, edi
push eax
push esi
push dword [esp + 0x70]
call fcn.004a5a60
mov ecx, dword [esp + 0x24]
inc ebp
add esp, 0x14
add ebx, 0x20
add edi, 0x434
cmp ebp, dword [ecx + 0x10]
jl 0x49c5e6
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
push eax
call fcn.004a5e60
call fcn.004a37e0
fsub qword [esp + 0x44]
push ecx
fstp qword [esp]
push str.__tiers_1_took__f_s_n
push 4
push dword [ebx + 0x14]
call fcn.00497cc0
add esp, 0x14
call fcn.004a37e0
mov ebp, dword [esp + 0x10]
xor edi, edi
fstp qword [esp + 0x40]
cmp dword [ebp + 0x10], edi
jle 0x49c720
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor esi, esi
xor ebp, ebp
jmp 0x49c690
mov ecx, dword [esp + 0x54]
mov edx, dword [eax + 0x14]
add edx, ebp
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x49c6cc
mov ecx, dword [edx + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x54]
dec ecx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [eax + esi + 0x24], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp dword [eax + esi + 0x24], 0
jl 0x49c778
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + esi + 0x24]
inc ecx
test ecx, ecx
jle 0x49c700
mov eax, dword [esp + 0x54]
push ecx
push edx
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x15d0]
cmp dword [eax + ebx + 0x14], 1
jne 0x49c6f8
call fcn.004a1e00
jmp 0x49c6fd
call fcn.004a2000
add esp, 8
mov eax, dword [esp + 0x10]
inc edi
add ebp, 0x20
add esi, 0x30
add ebx, 0x434
cmp edi, dword [eax + 0x10]
jl 0x49c690
mov ebx, dword [esp + 0x54]
mov ebp, eax
call fcn.004a37e0
fsub qword [esp + 0x40]
sub esp, 8
fstp qword [esp]
push str.__dwt_took__f_s_n
push 4
push dword [ebx + 0x14]
call fcn.00497cc0
mov esi, dword [ebx + 0x28]
add esp, 0x14
cmp dword [esi + 0x10], 0
je 0x49c7b0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sub edx, dword [ecx + 4]
imul edx, eax
mov eax, dword [esi + 0x15d0]
cmp dword [eax + 0x14], 1
push edx
push dword [ecx + 0x58]
push dword [ecx + 0x38]
push dword [ecx + 0x18]
jne 0x49c7a8
call fcn.004a7190
jmp 0x49c7ad
mov eax, dword [esp + 0x10]
shl edi, 5
mov eax, dword [eax + 0x14]
push dword [edi + eax + 0x10]
mov eax, dword [ecx + 0x20]
push dword [eax + 0x24]
push str.Error_decoding_tile._The_number_of_resolutions_to_remove___d1__is_higher_than_the_number__of_resolutions_in_the_original_codestream___d__nModify_the_cp_reduce_parameter._n
push 1
push dword [ecx + 0x14]
call fcn.00497cc0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.004a71f0
add esp, 0x10
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x2c], 0
jle 0x49ca22
xor esi, esi
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
mov edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x20], edx
mov edi, dword [eax + 0x18]
mov eax, dword [edi + esi + 0x20]
add edi, esi
mov dword [esp + 0x64], edi
imul esi, dword [edi + 0x24], 0x7c
add esi, dword [edx + 0x14]
test eax, eax
je 0x49c804
mov dword [esp + 0x1c], 0
jmp 0x49c813
mov ecx, dword [edi + 0x18]
mov ebx, 1
dec ecx
shl ebx, cl
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x49c822
mov ecx, dword [edi + 0x18]
or ebp, 0xffffffff
dec ecx
shl ebp, cl
jmp 0x49c824
xor ebp, ebp
mov ecx, dword [edi + 0x18]
mov ebx, 1
test eax, eax
je 0x49c831
dec ecx
mov eax, dword [edx + 8]
sub eax, dword [edx]
mov edx, 1
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
shl ebx, cl
mov ecx, dword [edi + 0x28]
dec ebx
mov edi, dword [edi + 0x10]
shl edx, cl
mov dword [esp + 0x14], eax
dec edx
mov eax, dword [esp + 0x64]
add edi, edx
mov edx, 1
sar edi, cl
shl edx, cl
mov eax, dword [eax + 0x14]
dec eax
add edx, eax
mov eax, dword [esp + 0x64]
sar edx, cl
mov dword [esp + 0x60], edx
cmp dword [eax + 0x2c], 0
jne 0x49c896
mov eax, dword [eax + 0xc]
imul eax, dword [esp + 0x14]
shl eax, 2
push eax
call sub.MSVCRT.dll_malloc
mov ecx, dword [esp + 0x68]
add esp, 4
mov edx, dword [esp + 0x60]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x15d0]
cmp dword [eax + ecx + 0x14], 1
jne 0x49c948
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0xc]
jge 0x49c9db
mov eax, dword [esi + 8]
mov dword [esp + 0x60], ecx
sub dword [esp + 0x60], edx
mov edx, dword [esp + 0x60]
imul edx, dword [esp + 0x14]
sub edx, edi
mov dword [esp + 0x60], edx
lea esp, [esp]
mov edx, dword [esi]
cmp edx, eax
jge 0x49c931
mov edi, dword [esp + 0x60]
lea edi, [edi + edx]
shl edi, 2
sub ecx, dword [esi + 4]
imul ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, dword [esi]
mov eax, dword [eax + 0x18]
add ecx, edx
mov ecx, dword [eax + ecx*4]
add ecx, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x49c912
mov ecx, ebp
jmp 0x49c918
cmp ecx, ebx
jle 0x49c918
mov ecx, ebx
mov eax, dword [esp + 0x64]
inc edx
mov eax, dword [eax + 0x2c]
mov dword [edi + eax], ecx
add edi, 4
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
cmp edx, eax
jl 0x49c8f0
mov edx, dword [esp + 0x14]
inc ecx
add dword [esp + 0x60], edx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0xc]
jl 0x49c8e0
jmp 0x49c9db
mov eax, dword [esi + 4]
mov dword [esp + 0x60], eax
cmp eax, dword [esi + 0xc]
jge 0x49c9db
mov ecx, eax
sub ecx, edx
imul ecx, dword [esp + 0x14]
sub ecx, edi
mov dword [esp + 0x18], ecx
mov edx, dword [esi]
cmp edx, dword [esi + 8]
jge 0x49c9c9
lea edi, [ecx + edx]
shl edi, 2
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, dword [esi + 4]
imul ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x18]
sub ecx, dword [esi]
add ecx, edx
fld dword [eax + ecx*4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fistp dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x40]
cmp ecx, ebp
jge 0x49c9a8
mov ecx, ebp
jmp 0x49c9ae
cmp ecx, ebx
jle 0x49c9ae
mov ecx, ebx
mov eax, dword [esp + 0x64]
inc edx
mov eax, dword [eax + 0x2c]
mov dword [edi + eax], ecx
add edi, 4
mov eax, dword [esp + 0x60]
cmp edx, dword [esi + 8]
jl 0x49c974
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [esi + 0xc]
jl 0x49c967
mov eax, dword [esp + 0x20]
push dword [eax + 0x18]
call fcn.0041771d
mov ecx, dword [esp + 0x30]
add esp, 4
mov ebp, dword [esp + 0x10]
inc ecx
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add eax, 0x20
add dword [esp + 0x24], 0x434
add esi, 0x30
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
cmp ecx, dword [ebp + 0x10]
jl 0x49c7d6
call fcn.004a37e0
fsub qword [esp + 0x48]
sub esp, 8
fstp qword [esp]
push str.__tile_decoded_in__f_s_n
push 4
push dword [ebx + 0x14]
call fcn.00497cc0
add esp, 0x14
xor eax, eax
cmp dword [esp + 0x38], eax
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret