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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c401
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 0x127
push str........._sourcegrglGL_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 0x4945f2
push edi
call fcn.0047bf80
add esp, 4
push eax
lea ecx, [esp + 0x44]
call fcn.004c6420
mov esi, eax
test esi, esi
je 0x494541
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 0x4945c5
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 0x4947e5
jmp 0x494602
xor esi, esi
jmp 0x494541
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 0x49465a
push edi
lea ecx, [esp + 0x24]
call fcn.00422640
mov eax, dword [esp + 0x24]
cmp edi, eax
jle 0x494660
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 0x494676
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.0x494686
jmp dword [ecx*4 + 0x49484c]
lea ecx, [ebx + 3]
sar ecx, 2
lea edi, [ecx*8]
jmp 0x494712
lea edi, [ebx + 3]
sar edi, 2
shl edi, 4
jmp 0x494712
mov edi, 0x10
cmp ebx, 0x10
jl 0x4946b3
mov edi, ebx
lea edx, [eax + eax*2]
imul edi, dword [edx*8 + 0x51413c]
add edi, edi
add edi, edi
add edi, edi
jmp 0x49470f
mov edi, 8
cmp ebx, 8
jl 0x4946d2
mov edi, ebx
lea ecx, [eax + eax*2]
imul edi, dword [ecx*8 + 0x51413c]
add edi, edi
add edi, edi
add edi, edi
jmp 0x49470f
mov edi, 4
cmp ebx, 4
jl 0x4946f1
mov edi, ebx
lea edx, [eax + eax*2]
imul edi, dword [edx*8 + 0x51413c]
add edi, edi
add edi, edi
jmp 0x49470f
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.0x494725.4
movzx edx, byte [ecx + 0x494878]
jmp dword [edx*4 + 0x49486c]
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 0x494773
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 0x494773
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 0x4947c5
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 0x494600
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x80], 0
dec dword [esi + 4]
jne 0x4947fc
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 0x494827
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