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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c261
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x546190]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], ebx
call fcn.0042c5f0
push 0xff
push str........._sourcegrgl1GL1_Context.cpp
push 1
push 0x7f8
mov dword [esp + 0x90], 0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int__int__char_const___int_]
mov esi, eax
add esp, 0x10
mov dword [esp + 0x30], esi
mov byte [esp + 0x80], 1
test esi, esi
je 0x4b5552
push edi
call fcn.0047bf80
add esp, 4
push eax
lea ecx, [esp + 0x44]
call fcn.004c6420
mov esi, eax
test esi, esi
je 0x4b54a1
inc dword [esi + 4]
mov dword [esp + 0x3c], esi
mov byte [esp + 0x80], 2
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x434]
push 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x1c]
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
dec eax
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call edx
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push edi
mov ecx, ebx
mov dword [esp + 0x30], ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call edx
cmp dword [edi + 0x14], 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ecx*4 + 0x514088]
mov edx, dword [edx*4 + 0x514088]
jl 0x4b5525
mov edi, dword [edi]
dec eax
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push edi
push str.Loading_texture__s:__dx_d__s__as__s__mips:__d_n
call fcn.004385b0
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x18], eax
cmp dword [esi + 0x1c], eax
jle 0x4b5745
jmp 0x4b5562
xor esi, esi
jmp 0x4b54a1
xor eax, eax
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ecx, ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 3
call fcn.004e64a0
mov edi, eax
test edi, edi
jle 0x4b55ba
push edi
lea ecx, [esp + 0x24]
call fcn.00422640
mov eax, dword [esp + 0x24]
cmp edi, eax
jle 0x4b55c0
mov edx, dword [esp + 0x20]
lea ecx, [eax + edx]
mov edx, edi
sub edx, eax
push edx
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x4b55d6
mov ecx, dword [esp + 0x20]
sub eax, edi
push eax
add ecx, edi
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x1a]
mov dword [esp + 0x24], edi
cmp ecx, 7
ja case.default.0x4b55e6
jmp dword [ecx*4 + 0x4b57ac]
lea ecx, [ebx + 3]
sar ecx, 2
lea edi, [ecx*8]
jmp 0x4b5672
lea edi, [ebx + 3]
sar edi, 2
shl edi, 4
jmp 0x4b5672
mov edi, 0x10
cmp ebx, 0x10
jl 0x4b5613
mov edi, ebx
lea edx, [eax + eax*2]
imul edi, dword [edx*8 + 0x51413c]
add edi, edi
add edi, edi
add edi, edi
jmp 0x4b566f
mov edi, 8
cmp ebx, 8
jl 0x4b5632
mov edi, ebx
lea ecx, [eax + eax*2]
imul edi, dword [ecx*8 + 0x51413c]
add edi, edi
add edi, edi
add edi, edi
jmp 0x4b566f
mov edi, 4
cmp ebx, 4
jl 0x4b5651
mov edi, ebx
lea edx, [eax + eax*2]
imul edi, dword [edx*8 + 0x51413c]
add edi, edi
add edi, edi
jmp 0x4b566f
lea ecx, [eax + eax*2]
mov edi, dword [ecx*8 + 0x51413c]
imul edi, ebx
sar edi, 3
mov ecx, dword [esi + 0x43c]
dec ecx
cmp ecx, 0xa
ja case.0x4b5685.4
movzx edx, byte [ecx + 0x4b57d8]
jmp dword [edx*4 + 0x4b57cc]
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
push ecx
mov ecx, ebx
mov edx, esi
call fcn.004c6990
jmp 0x4b56d3
mov edx, dword [esp + 0x14]
xor ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x28]
push edx
push ebx
push edi
push eax
mov ecx, esi
call fcn.004c78d0
jmp 0x4b56d3
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push edi
call fcn.004c7010
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ebx
push eax
mov eax, dword [esp + 0x38]
push edi
push eax
push 0
push 0
mov dword [esp + 0x58], 0
call edx
mov edi, dword [esp + 0x18]
test edi, edi
jle 0x4b5725
mov edx, dword [esp + 0x14]
mov ecx, ebx
lea eax, [esp + 0x1c]
call fcn.004e64a0
mov ecx, dword [esp + 0x38]
add dword [ecx + 0x24], eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
inc edi
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, dword [esi + 0x1c]
jl 0x4b5560
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x80], 0
dec dword [esi + 4]
jne 0x4b575c
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x44], vtable.io::FileInputStream.0
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [esp + 0x60], 0x10
jl 0x4b5787
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret 4