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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x72c913
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
push str.Begin_LoadGame...
mov esi, ecx
call fcn.006e9a00
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x360]
xor ebx, ebx
add esp, 4
cmp ecx, ebx
je 0x4c4841
call fcn.004097c0
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.004c4530
mov ebp, eax
cmp ebp, ebx
jne 0x4c4867
push str.End_LoadGame...CreateLoadGameFailure...
call fcn.006e9a00
add esp, 4
xor al, al
jmp 0x4c4e7a
mov ecx, dword [0x7c67e0]
push 1
push ebx
call fcn.0048ed20
mov edx, dword [0x7c6cdc]
mov ecx, dword [edx + 0x108]
call fcn.00459c70
test al, al
jne 0x4c48bf
mov ecx, 0x7cb478
call fcn.004d51b0
mov edi, eax
mov eax, dword [0x7c6cdc]
mov ecx, dword [eax + 0x108]
push 3
push edi
call fcn.00459830
mov ecx, dword [0x7c6cdc]
mov ecx, dword [ecx + 0x108]
push 1
push 1
push edi
call fcn.00458dd0
mov ecx, dword [0x7c67e0]
call fcn.0048f900
push str.Loading...Unloading_current_state...
mov byte [esi + 0xb375], 1
call fcn.00477fa0
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x2dc]
mov al, byte [ecx + 0xc]
add esp, 4
push ebx
mov byte [esp + 0x18], al
call fcn.004360f0
mov ecx, dword [0x7c67dc]
mov edi, dword [ecx + 0x2dc]
cmp edi, ebx
je 0x4c4917
mov ecx, edi
call fcn.00434190
push edi
call fcn.00727530
add esp, 4
mov edx, dword [0x7c67dc]
mov dword [edx + 0x2dc], ebx
call fcn.005b46b0
push 1
mov ecx, esi
call fcn.004c6dc0
mov ecx, dword [0x7d1c28]
call fcn.00578820
mov ecx, dword [0x7d1c74]
call fcn.00578820
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x2e8]
cmp ecx, ebx
je 0x4c495b
call fcn.006321d0
push 0x42c80000
push str.Loading...
call fcn.005ded20
add esp, 8
push 1
mov ecx, ebp
mov dword [esi + 4], ebp
call fcn.004b62c0
push 1
mov ecx, ebp
call fcn.004b6280
push 1
mov ecx, esi
call fcn.004c54c0
push ebp
mov ecx, esi
call fcn.004c8b50
mov ecx, dword [esi + 0xae60]
call fcn.004f1ab0
mov edi, eax
cmp edi, ebx
je 0x4c49c1
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4c49af
call fcn.004b47c0
mov ecx, dword [esi + 0xae60]
push edi
call fcn.004d4270
mov edi, eax
cmp edi, ebx
jne 0x4c49a4
mov ecx, esi
call fcn.004c7be0
mov ecx, dword [0x7c67e0]
push 1
push ebx
call fcn.0048ed20
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x4c49ed
mov ecx, edi
call fcn.004b4140
push edi
call fcn.00727530
add esp, 4
mov dword [esi + 8], ebp
mov dword [esi + 4], ebx
mov ecx, dword [0x7c67dc]
mov eax, dword [ecx + 0xc0]
mov edx, dword [eax + 0x34]
push 1
mov dword [esp + 0x80], edx
mov dword [eax + 0x34], ebx
call fcn.005f43a0
mov eax, dword [0x7c67dc]
mov eax, dword [eax + 0xc0]
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x34], ecx
mov ecx, dword [esi + 0xb384]
mov edx, dword [ecx]
add esp, 4
call dword [edx + 0x2c]
mov edi, eax
mov eax, dword [esi + 0xb384]
mov ecx, dword [eax + 0x2c]
add eax, 0x2c
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
push 0x7de664
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
call fcn.006e7cd0
fld dword [esp + 0x20]
mov eax, dword [esi + 0xb384]
fstp dword [eax + 0x34]
add eax, 0x2c
push ebx
lea ecx, [esp + 0x4c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
push ecx
mov ecx, dword [esi + 0xb384]
call fcn.004e8450
push eax
lea ecx, [edi + 0x2c]
call fcn.006e93d0
fld dword [esp + 0x18]
mov edx, dword [0x7c67dc]
fstp dword [esp + 0x34]
fld dword [esp + 0x1c]
push 3
fstp dword [esp + 0x3c]
fld dword [esp + 0x20]
push 3
fchs
fstp dword [esp + 0x48]
fld dword [esp + 0x20]
fstp dword [esp + 0x4c]
mov ecx, dword [edx + 0x2e0]
call fcn.0041eea0
mov eax, dword [0x7c67e0]
mov cl, byte [eax + 0xb53c]
test cl, cl
sete cl
mov byte [eax + 0xb53c], cl
mov edx, dword [0x7de6cc]
mov eax, dword [0x7de6d0]
mov ecx, dword [0x7de6d4]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xb384]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x7c67dc]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 0x32c]
push 1
push edx
sub esp, 0xc
mov ecx, esp
lea eax, [esp + 0x2c]
mov dword [esp + 0x90], esp
push eax
call fcn.0040a7e0
mov ecx, dword [esi + 0xb384]
call fcn.0045e5c0
sub esp, 0xc
add eax, 0x10
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
call fcn.0040a7e0
call fcn.0045cef0
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
call fcn.006e7cd0
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, eax
call fcn.005264b0
mov ecx, eax
call fcn.0045e9b0
mov ecx, dword [0x7c67e0]
call fcn.00485490
mov ecx, dword [0x7c67e0]
push 1
call fcn.00487070
mov ecx, dword [0x7c67e0]
push 1
call fcn.00488950
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x24]
call fcn.0056fa80
mov eax, dword [0x7c67e0]
mov ecx, dword [eax + 0xac]
cmp ecx, ebx
jne 0x4c4bcd
mov ecx, dword [eax + 0x94]
jmp 0x4c4bd4
call fcn.004e2330
mov ecx, eax
call fcn.006eb380
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, eax
call fcn.006eb380
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, dword [eax + 0x660]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.006eb380
push 0x70
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, ebx
mov dword [esp + 0x74], ebx
je 0x4c4c2f
mov ecx, eax
call fcn.00434020
jmp 0x4c4c31
xor eax, eax
mov ecx, dword [0x7c67dc]
mov dword [ecx + 0x2dc], eax
mov eax, dword [0x7c67dc]
mov edi, dword [eax + 0x12c]
lea edx, [esp + 0x10]
or ebp, 0xffffffff
push edx
lea ecx, [eax + 0x2c0]
mov dword [esp + 0x78], ebp
call fcn.00430f70
mov ecx, dword [0x7c67dc]
mov eax, dword [eax]
mov edx, dword [ecx + 0x2b8]
mov ecx, dword [ecx + 0x2dc]
push edi
push eax
push edx
mov dword [esp + 0x80], 1
call fcn.00434260
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x74], ebp
je 0x4c4cad
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
cmp edx, ebx
mov dword [eax], edi
jne 0x4c4cad
cmp ecx, ebx
je 0x4c4cad
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x7c67dc]
push ecx
mov ecx, dword [edx + 0x2dc]
call fcn.004360f0
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x2e4]
mov byte [ecx + 0x3a], 1
mov ecx, dword [0x7c6cdc]
call fcn.00419650
mov edx, dword [0x7c67dc]
push 0xffff80b4
mov byte [edx + 0xd6], 1
call fcn.00595270
add esp, 4
call fcn.00594d80
call fcn.005e2480
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ebx, dword [eax + 0x10]
mov ecx, dword [0x7c67dc]
shr ebx, 0xe
and bl, 1
call fcn.0040ff20
mov ecx, dword [eax + 0x378]
test ecx, ecx
je 0x4c4dcb
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
xor ecx, ecx
mov cl, byte [eax + 0x37c]
mov eax, ecx
dec eax
je 0x4c4d8e
dec eax
jne 0x4c4da8
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, dword [eax + 0x380]
test ecx, ecx
je 0x4c4da8
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, dword [0x7c67dc]
mov edi, eax
call fcn.0040ff20
mov edx, dword [edi + 0x384]
mov eax, dword [eax + 0x380]
push edx
push eax
call fcn.005e4300
add esp, 8
jmp 0x4c4da8
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, dword [eax + 0x378]
push ecx
call fcn.005e4200
add esp, 4
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
test bl, bl
mov ecx, dword [eax + 0x10]
je 0x4c4dc2
or ecx, 0x4000
jmp 0x4c4dc8
and ecx, 0xffffbfff
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x2c]
call fcn.0047e710
test eax, eax
je 0x4c4e16
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
mov edi, dword [eax + 8]
mov edx, dword [edi]
push str.GlobalFixNPCs
mov ecx, edi
call dword [edx + 0x20]
push eax
call ebx
add esp, 8
test eax, eax
je 0x4c4e04
mov ecx, dword [esi + 0x2c]
call fcn.0047e720
test eax, eax
jne 0x4c4ddd
jmp 0x4c4e16
test edi, edi
je 0x4c4e16
mov ecx, dword [0x7c67dc]
push 0
push edi
call fcn.0040fa80
mov eax, dword [0x7c67e0]
mov ecx, dword [eax]
mov edi, dword [ecx + 0x48]
mov ecx, edi
call fcn.0047e710
test eax, eax
je 0x4c4e64
mov eax, dword [eax + 8]
mov edx, dword [eax + 8]
shr edx, 5
test dl, 1
jne 0x4c4e59
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4c4e59
mov ecx, dword [eax + 8]
shr ecx, 5
test cl, 1
jne 0x4c4e59
mov ecx, dword [0x7c67dc]
push 0
push eax
call fcn.0040fa80
mov ecx, edi
call fcn.0047e720
test eax, eax
jne 0x4c4e2b
push str.End_LoadGame...
mov byte [esi + 0xb375], 0
call fcn.006e9a00
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 4