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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [esp + 0x5c]
mov edi, 1
shl edi, cl
push 0x18
mov dword [esp + 0x38], edi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x4c6970
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.004c2900
mov dword [esp + 0x54], eax
jmp 0x4c6976
mov dword [esp + 0x54], ebp
mov eax, ebp
mov ecx, dword [eax + 0x10]
imul ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
push ecx
cmp dword [esp + 0x74], ebp
je 0x4c698e
push 0xff
jmp 0x4c698f
push ebp
push edx
call sub.MSVCR90.dll_memset
mov esi, dword [esp + 0x54]
add esp, 0xc
cmp esi, ebp
je 0x4c69ba
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x8c]
call fcn.004c6100
jmp 0x4c69cb
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x48]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00501be0
mov ecx, dword [esp + 0x10]
imul ecx, edi
neg ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x58], ebp
jbe 0x4c6e33
jmp 0x4c69f8
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
test esi, esi
je 0x4c6a16
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0x8c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004c6100
jmp 0x4c6a27
mov ecx, dword [ebx + 0x64]
push ecx
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x18]
push edx
call fcn.00501be0
test eax, eax
je 0x4c6e33
mov eax, dword [esp + 0x14]
imul eax, edi
add dword [esp + 0x10], eax
test esi, esi
je 0x4c6a58
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebx + 0x8c]
lea edx, [esp + 0x1c]
push edx
call fcn.004c6100
jmp 0x4c6a69
mov eax, dword [ebx + 0x6c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x48]
call fcn.00501be0
test eax, eax
je 0x4c6e33
add ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x70], ebp
cmp dword [esp + 0x28], edx
jae 0x4c6e33
jmp 0x4c6a90
cmp edi, 1
jne 0x4c6a9f
mov dword [esp + 0x14], 0
jmp 0x4c6aca
test esi, esi
je 0x4c6ab9
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x8c]
push eax
call fcn.004c22c0
mov dword [esp + 0x14], eax
jmp 0x4c6aca
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x18]
push edx
call fcn.00501be0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax]
test esi, esi
je 0x4c6b0a
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4c6af8
mov ecx, dword [ebx + 0x8c]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004c6100
mov eax, dword [esp + 0x3c]
jmp 0x4c6b1e
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebx + 0x8c]
call fcn.004c22c0
jmp 0x4c6b1e
mov edx, dword [ebx + 0x88]
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx + 0x48]
push edx
push eax
call fcn.00501b90
mov ecx, eax
mov dword [esp + 0x50], eax
cmp ecx, dword [esp + 0x60]
jb 0x4c6b48
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
push str.Invalid_symbol_number_in_JBIG2_text_region
mov ecx, ebx
call eax
push eax
push 1
call fcn.00489570
add esp, 0xc
jmp 0x4c6dbb
cmp dword [esp + 0x4c], 0
je 0x4c6c53
test esi, esi
je 0x4c6c36
mov esi, dword [ebx + 0x8c]
cmp dword [esi + 8], 0
jne 0x4c6b7d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
inc dword [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 8
dec dword [esi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x48]
shr eax, cl
and eax, 1
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4c6c5b
test esi, esi
je 0x4c6c95
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x8c]
call fcn.004c6100
mov edx, dword [esp + 0x94]
mov ecx, dword [ebx + 0x8c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004c6100
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x8c]
lea edx, [esp + 0x30]
push edx
call fcn.004c6100
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebx + 0x8c]
call fcn.004c6100
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x8c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004c6100
mov eax, dword [ebx + 0x8c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x48]
call fcn.00501980
jmp 0x4c6cdc
mov ecx, dword [ebx + 0x84]
push ecx
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x20]
push edx
call fcn.00501be0
mov eax, dword [esp + 0x1c]
jmp 0x4c6b93
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x7c]
dec eax
dec ecx
cmp dword [esp + 0x78], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x50], ecx
je 0x4c6d81
cmp edx, 3
ja case.default.0x4c6c8e
jmp dword [edx*4 + 0x4c6e44]
mov ecx, dword [ebx + 0x7c]
push ecx
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x28]
push edx
call fcn.00501be0
mov eax, dword [ebx + 0x80]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x48]
call fcn.00501be0
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x48]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00501be0
mov ecx, dword [ebx + 0x78]
push ecx
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x34]
push edx
call fcn.00501be0
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x4c6ce5
dec eax
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x4c6cfb
dec eax
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0x6c]
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ebp
mov ebp, dword [esp + 0xac]
push ebp
sar eax, 1
add eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xb8]
push 0
push ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add esi, ecx
push edx
push esi
mov ecx, ebx
call fcn.004c4c60
mov ebp, dword [esp + 0x70]
mov esi, eax
jmp 0x4c6c66
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x4c6d6d
mov ecx, dword [esp + 0x74]
push ecx
sub edi, eax
jmp 0x4c6d6d
sub edi, eax
mov edx, dword [esp + 0x74]
push edx
mov ecx, dword [esp + 0x58]
push ebp
push edi
push esi
call fcn.004c2b80
mov ecx, dword [esp + 0x50]
add ebp, ecx
jmp 0x4c6da6
cmp edx, 3
ja case.default.0x4c6d86
jmp dword [edx*4 + 0x4c6e54]
sub edi, ecx
mov eax, dword [esp + 0x74]
push eax
mov ecx, dword [esp + 0x58]
push edi
push ebp
push esi
call fcn.004c2b80
mov eax, dword [esp + 0x70]
add ebp, eax
cmp dword [esp + 0x1c], 0
je 0x4c6db7
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x28], edi
test esi, esi
je 0x4c6df2
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, dword [ebx + 0x8c]
lea edx, [esp + 0x1c]
push edx
call fcn.004c6100
jmp 0x4c6e03
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x4c6d94
mov edx, dword [esp + 0x74]
push edx
sub edi, ecx
jmp 0x4c6d94
mov eax, dword [ebx + 0x70]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x48]
call fcn.00501be0
test eax, eax
je 0x4c6e29
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
add edx, eax
add ebp, edx
mov dword [esp + 0x70], ebp
cmp edi, dword [esp + 0x58]
jae 0x4c6e33
mov edi, dword [esp + 0x34]
jmp 0x4c6a90
cmp edi, dword [esp + 0x58]
jb 0x4c69f0
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x68