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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5baecc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x69e298]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x69e298]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp byte [ebx + 0x14], 0
jne 0x4d5d77
push 1
push 0xae
push str..graphics_surface.cpp
lea ecx, [esp + 0x150]
call fcn.00496f50
lea eax, [esp + 0x144]
push 0x5d8094
push eax
mov dword [esp + 0x2c0], 0
call fcn.00402cc0
add esp, 8
lea ecx, [esp + 0x144]
call fcn.00496c20
test al, al
je 0x4d5d3b
int3
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00401f70
lea ecx, [esp + 0x1c0]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00588e93
add esp, 4
cmp byte [ebx + 0x14], 0
je 0x4d6048
push edi
mov ecx, ebx
call fcn.004d5b50
mov ecx, ebx
mov edi, eax
call fcn.004d5280
mov dword [esp + 0x14], eax
dec eax
cmp eax, 0x10
ja case.0x4d5d96.16
jmp dword [eax*4 + 0x4d6080]
movzx edx, byte [edi]
push edx
mov ecx, ebx
call fcn.004d5860
push eax
lea ecx, [esp + 0x18]
call fcn.004d4720
lea ecx, [esp + 0xc4]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004d4660
add esp, 8
push eax
mov ecx, esi
call fcn.004d4770
jmp 0x4d6055
movzx edx, byte [edi]
push edx
mov ecx, ebx
call fcn.004d5860
push eax
lea ecx, [esp + 0x18]
call fcn.004d47b0
lea ecx, [esp + 0xf4]
jmp 0x4d5db9
push edi
lea ecx, [esp + 0x18]
call fcn.004d4ce0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x118]
push eax
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4d70
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xe8]
push edx
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4e00
lea ecx, [esp + 0x84]
jmp 0x4d5db9
push edi
lea ecx, [esp + 0x18]
call fcn.004d4ea0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x128]
push eax
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4f40
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa8]
push edx
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4720
lea ecx, [esp + 0x104]
jmp 0x4d5db9
push edi
lea ecx, [esp + 0x18]
call fcn.004d48b0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d47b0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x138]
push edx
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4720
lea ecx, [esp + 0x64]
jmp 0x4d5db9
push edi
lea ecx, [esp + 0x18]
call fcn.004d4900
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x78]
push eax
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d4fd0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x98]
push edx
jmp 0x4d5dbf
push edi
lea ecx, [esp + 0x18]
call fcn.004d5060
lea ecx, [esp + 0xb4]
jmp 0x4d5db9
push edi
lea edx, [esp + 0xd8]
push edx
jmp 0x4d5dbf
push edi
mov ecx, esi
call fcn.004d4770
jmp 0x4d6055
push 1
push 0xd5
push str..graphics_surface.cpp
lea ecx, [esp + 0x200]
call fcn.004e3750
push 0xb
xor edi, edi
push 0x5d80c4
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c0], 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
call fcn.00401db0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x2c0], 2
call fcn.00495c50
add esp, 8
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x1fc]
mov ebx, 3
push eax
mov byte [esp + 0x2c4], bl
call fcn.00496550
add esp, 8
mov ecx, eax
call fcn.00408aa0
cmp dword [esp + 0x50], 4
jb 0x4d5fd0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0058984a
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2b8], 1
jb 0x4d5ff8
mov edx, dword [esp + 0x20]
push edx
call fcn.0058984a
add esp, 4
push edi
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
call fcn.004e38c0
lea ecx, [esp + 0x270]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00401f70
lea eax, [esp + 0x270]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00588e93
add esp, 4
fldz
fst dword [esi]
fst dword [esi + 4]
fst dword [esi + 8]
fstp dword [esi + 0xc]
mov eax, esi
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00589f78
mov esp, ebp
pop ebp
ret 8