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

Disassembly:
push 0xffffffffffffffff
push 0x54ec0b
mov eax, dword fs:[0]
push eax
mov eax, 0x10b0
call fcn.005498d0
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x10a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x10c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10d8]
mov ebp, dword [esp + 0x10d4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10dc]
mov edi, dword [eax + 0x24]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x78], ecx
mov ecx, edi
call eax
push 0
push 0x1000
push 1
mov esi, eax
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
call fcn.00548618
mov dword [esp + 0x10cc], 0
test byte [esp + 0x3c], 1
jne 0x47c523
mov ecx, dword [esp + 0x38]
push ecx
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x47c549
sub eax, ecx
add eax, 4
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CArchive::FillBuffer
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
add eax, 4
mov dword [esp + 0x4c], eax
test byte [esp + 0x3c], 1
mov dword [esp + 0x74], edx
jne 0x47c569
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x47c583
sub eax, ecx
add eax, 4
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CArchive::FillBuffer
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
add eax, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], eax
call sub.mfc90u.dll_CArchive::ReadCount
test byte [esp + 0x3c], 1
mov dword [esp + 0x6c], eax
jne 0x47c5b0
mov edx, dword [esp + 0x38]
push edx
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [eax + 2]
cmp edx, ecx
jbe 0x47c5d6
sub eax, ecx
add eax, 2
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CArchive::FillBuffer
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
movzx edx, word [eax]
add eax, 2
mov ebx, 0xffff
mov dword [esp + 0x4c], eax
cmp dx, bx
je 0x47c605
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CArchive::Flush
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0
push ecx
push esi
jmp 0x47c796
test byte [esp + 0x3c], 1
jne 0x47c618
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 2]
cmp edx, ecx
jbe 0x47c636
sub eax, ecx
add eax, 2
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CArchive::FillBuffer
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
movzx ebx, word [eax]
add eax, 2
mov dword [esp + 0x4c], eax
test byte [esp + 0x3c], 1
jne 0x47c653
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 2]
cmp edx, ecx
jbe 0x47c66d
sub eax, ecx
add eax, 2
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CArchive::FillBuffer
mov eax, dword [esp + 0x4c]
movzx ecx, word [eax]
add eax, 2
mov dword [esp + 0x4c], eax
cmp cx, 0x40
jae 0x47c77c
movzx esi, cx
push esi
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CArchive::Read
cmp eax, esi
jne 0x47c77c
mov eax, dword [esp + 0x78]
mov byte [esp + esi + 0x7c], 0
lea esi, [esp + 0x7c]
call fcn.00497380
test al, al
jne 0x47c77c
mov eax, dword [esp + 0x20]
call fcn.00496ac0
mov ecx, dword [esp + 0x74]
movzx edi, ax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov esi, ebp
call fcn.0047cab0
mov esi, eax
call fcn.0047cab0
mov edx, dword [esp + 0x6c]
push edx
mov ecx, ebp
call sub.mfc90u.dll_CArchive::WriteCount
push edi
push ebx
push 0xffff
mov esi, ebp
call fcn.0047ca70
mov esi, eax
call fcn.0047ca70
mov esi, eax
call fcn.0047ca70
movzx eax, di
push eax
mov eax, dword [esp + 0x24]
call fcn.00407eb0
push eax
mov ecx, ebp
call sub.mfc90u.dll_CArchive::Write
push 0x1000
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CArchive::Read
test eax, eax
je 0x47c75d
push eax
lea edx, [esp + 0xc0]
push edx
mov ecx, ebp
call sub.mfc90u.dll_CArchive::Write
push 0x1000
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CArchive::Read
test eax, eax
jne 0x47c733
mov ecx, ebp
call sub.mfc90u.dll_CArchive::Flush
mov dword [esp + 0x10cc], 0xffffffff
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CArchive::CArchive
mov al, 1
jmp 0x47c7b0
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CArchive::Flush
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + 0x30]
push 0
push eax
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x10cc], 0xffffffff
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CArchive::CArchive
xor al, al
mov ecx, dword [esp + 0x10c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.0054904e
add esp, 0x10bc
ret 0xc