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

Disassembly:
sub esp, 0x44c
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x444], eax
mov eax, dword [esp + 0x454]
push ebx
push ebp
mov ebp, dword [esp + 0x458]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
mov dword [esp + 0x1c], eax
je 0x4787fe
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0xc], ebx
mov eax, 0x7c
call fcn.00457920
mov esi, eax
cmp esi, ebx
je 0x478839
mov dword [esi], vtable.ytTIFFFileContainer.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea eax, [esi + 0x14]
xor edi, edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00487150
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0x78], 1
jmp 0x47883b
xor esi, esi
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x478851
cmp ecx, ebx
je 0x47884e
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0xc], esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x478862
mov eax, 4
jmp 0x478a78
cmp dword [esi + 4], ebx
mov eax, dword [ebp]
je 0x478872
or eax, 0xffffffff
jmp 0x478a78
push eax
call fcn.005d0530
add esp, 4
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x47888c
mov eax, 3
jmp 0x478a78
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov eax, ebp
call fcn.00478490
cmp eax, ebx
jne 0x478a78
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x152
call fcn.005d8e60
add esp, 0xc
cmp word [esp + 0x14], 1
jne 0x4788dc
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx]
movzx ecx, ax
add ecx, 0xffffffff
cmp ecx, 1
ja 0x4788dc
mov word [ebp + 0x16], ax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov dword [edx + 0x78], eax
xor eax, eax
cmp esi, eax
jne 0x478912
cmp edi, eax
jne 0x478906
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
jmp 0x478963
mov eax, edi
imul eax, ecx
cdq
idiv ebx
mov esi, eax
jmp 0x478963
cmp edi, eax
jne 0x478922
mov eax, esi
imul eax, ebx
cdq
idiv ecx
mov edi, eax
jmp 0x478963
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
lea eax, [esp + 0x20]
lea esi, [esp + 0x40]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], edi
call fcn.00484cc0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
sub esi, dword [esp + 0x30]
sub edi, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x468]
mov ecx, dword [esp + 0x46c]
add eax, 0xc
test ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ecx
je 0x47898d
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push edi
push esi
mov ecx, ebx
call eax
jmp 0x4789b0
test ecx, ecx
je 0x47886a
mov ebx, dword [esp + 0x46c]
mov edx, edi
mov ecx, esi
call fcn.00479fc0
test eax, eax
mov ebx, dword [esp + 0x468]
je 0x4789b8
test eax, eax
jne 0x478a78
cmp esi, dword [ebp + 4]
jne 0x4789c2
cmp edi, dword [ebp + 8]
je 0x478a27
mov eax, 0xa0
call fcn.00457920
mov esi, eax
test esi, esi
je 0x4789ec
call fcn.0047d920
mov ecx, dword [esp + 0x46c]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ecx
jmp 0x4789ee
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx + 8]
add ebx, 8
cmp edi, esi
je 0x478a0d
test edi, edi
je 0x478a0b
call fcn.00403660
mov eax, edi
call fcn.00457930
mov dword [ebx], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x478858
lea eax, [ebp + 4]
call fcn.00478220
test eax, eax
jne 0x478a78
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
add eax, eax
push 0
add eax, eax
add ecx, 0x14
call fcn.00487200
test eax, eax
jne 0x478858
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x50]
lea edi, [eax + 0x20]
mov eax, dword [eax + 4]
push ecx
call fcn.005d23e0
add esp, 4
test eax, eax
je 0x478882
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x74], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x24], 1
xor eax, eax
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x44c
ret 0x10