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

Disassembly:
push 0xffffffffffffffff
push 0x554b0b
mov eax, dword fs:[0]
push eax
mov eax, 0x10b0
call fcn.0054f760
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x10a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
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.0054e4ba
mov dword [esp + 0x10cc], 0
test byte [esp + 0x3c], 1
jne 0x4801f3
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 0x480219
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 0x480239
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x480253
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 0x480280
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 0x4802a6
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 0x4802d5
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 0x480466
test byte [esp + 0x3c], 1
jne 0x4802e8
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 2]
cmp edx, ecx
jbe 0x480306
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 0x480323
mov eax, dword [esp + 0x38]
push eax
push 4
call sub.mfc90u.dll_AfxThrowArchiveException
lea edx, [eax + 2]
cmp edx, ecx
jbe 0x48033d
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 0x48044c
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 0x48044c
mov eax, dword [esp + 0x78]
mov byte [esp + esi + 0x7c], 0
lea esi, [esp + 0x7c]
call fcn.0049bcc0
test al, al
jne 0x48044c
mov eax, dword [esp + 0x20]
call fcn.0049b410
mov ecx, dword [esp + 0x74]
movzx edi, ax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov esi, ebp
call fcn.00480790
mov esi, eax
call fcn.00480790
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.00480750
mov esi, eax
call fcn.00480750
mov esi, eax
call fcn.00480750
movzx eax, di
push eax
mov eax, dword [esp + 0x24]
call fcn.00408130
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 0x48042d
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 0x480403
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 0x480480
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.0054eee2
add esp, 0x10bc
ret 0xc