Function at 0x1004db95
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x100ebaec
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10157040]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xa8]
mov ecx, str.D3D9::Present_...__
mov esi, dword [ebp + 0xa0]
mov edi, dword [ebp + 0xa4]
mov ebx, dword [ebp + 0x9c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
call fcn.1008f433
cmp byte [0xba67a4], 0
je 0x1004dc0c
push dword [ebp - 0x10]
push edi
push esi
jmp 0x1004e065
push str.modloader.asi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
test eax, eax
jne 0x1004ddf5
mov ecx, dword [0x101f3a58]
test ecx, ecx
jne 0x1004dcc1
cmp byte [0x1018ef7b], dl
je 0x1004ddf5
push 0x101f3a58
push edx
lea eax, [ebp + 0x70]
push eax
push edx
xor eax, eax
inc eax
push eax
push eax
push eax
push edx
push edx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.te_modmedia_te_bg.jpg
push dword [0x1018f810]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
mov eax, dword [ebp + 0x70]
push 0x101f3a64
push dword [0x1018f810]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101378f0]
mov eax, dword [ebp + 0x74]
cvtpd2ps xmm0, xmm0
movss dword [0x101f3a5c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101378f0]
cvtpd2ps xmm0, xmm0
movss dword [0x101f3a60], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXCreateSprite]
mov ecx, dword [0x101f3a58]
mov al, byte [0x1018ef7b]
test al, al
je 0x1004ddf5
mov edx, dword [0x101f3a64]
test edx, edx
je 0x1004ddb0
test ecx, ecx
je 0x1004ddb0
cmp dword [0x1018f3d0], 0
je 0x1004ddb0
mov esi, dword [0x1018f3dc]
test esi, esi
je 0x1004ddb0
mov edi, dword [0x1018f3d8]
test edi, edi
je 0x1004ddb0
movd xmm1, esi
lea eax, [ebp - 0x20]
movd xmm0, edi
cvtdq2ps xmm1, xmm1
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push eax
push ecx
and dword [esp], 0
lea eax, [ebp - 0x28]
divss xmm1, dword [0x101f3a5c]
push 0
push eax
push ecx
and dword [esp], 0
lea eax, [ebp]
push 0
push eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x28], xmm1
divss xmm0, dword [0x101f3a60]
movss dword [ebp - 0x24], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixTransformation2D]
mov ecx, dword [0x101f3a64]
push 0x10
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x101f3a64]
lea edx, [ebp]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x101f3a64]
xor edx, edx
push 0xffffffffffffffff
push edx
push edx
mov eax, dword [ecx]
push edx
push dword [0x101f3a58]
push ecx
call dword [eax + 0x24]
mov eax, dword [0x101f3a64]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, dword [0x101f3a58]
mov al, byte [0x1018ef7b]
mov edx, dword [0x101f3a64]
test al, al
je 0x1004ddf5
cmp dword [0x1018f6d4], 0
je 0x1004ddf5
cmp dword [0x1018f6c8], 0
je 0x1004ddf5
test edx, edx
je 0x1004dddd
mov eax, dword [edx]
push edx
call dword [eax + 8]
and dword [0x101f3a64], 0
mov ecx, dword [0x101f3a58]
test ecx, ecx
je 0x1004ddee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [0x101f3a58], 0
mov byte [0x1018ef7b], 0
cmp dword [0x1018f3d0], 0
jne 0x1004de0e
mov eax, dword [0xc17054]
mov eax, dword [eax]
mov dword [0x1018f3d0], eax
test eax, eax
je 0x1004de17
cmp dword [0x1018f3dc], 0
je 0x1004de20
cmp dword [0x1018f3d8], 0
jne 0x1004de34
mov eax, dword [0xc17044]
mov dword [0x1018f3dc], eax
mov eax, dword [0xc17048]
mov dword [0x1018f3d8], eax
cmp byte [0x1018ee8b], 0
jne 0x1004df26
cmp dword [0x1018f3d0], 0
je 0x1004df26
call fcn.10098986
call fcn.10091df8
call fcn.10091ada
call fcn.10098a30
mov esi, eax
push ecx
mov ecx, dword [esi + 0x40]
call fcn.100b67cf
movss xmm2, dword [0x101375dc]
push ecx
push ecx
mov ecx, dword [esi + 0x40]
push str.te_mod_fontsjetbrains.ttf
call fcn.100b68ec
mov dword [0x1018f3e0], eax
test eax, eax
jne 0x1004df1a
movss xmm2, dword [0x101375dc]
push ecx
push ecx
mov ecx, dword [esi + 0x40]
push str.te_mod_fontsMonaco.ttf
call fcn.100b68ec
mov dword [0x1018f3e0], eax
test eax, eax
jne 0x1004df1a
mov edi, dword [esi + 0x40]
lea ecx, [ebp + 0x40]
push str...LocalMicrosoftWindowsFontsMonaco.ttf
call fcn.100054df
mov esi, eax
and dword [ebp - 4], 0
push str.APPDATA
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push esi
mov edx, eax
lea ecx, [ebp + 0x58]
call fcn.1000c560
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x1004deeb
mov eax, dword [eax]
movss xmm2, dword [0x101375d4]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.100b68ec
mov dword [0x1018f3e0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x58]
call fcn.10004f4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.10004f4d
mov byte [0x1018ee8b], 1
jmp 0x1004e05c
cmp dword [0x1018f6d4], 0
jne 0x1004df57
call fcn.10033add
test al, al
je 0x1004df4a
push str.GameSA_Initialized__
push dword [0x101d3874]
call fcn.100cf94d
pop ecx
pop ecx
cmp dword [0x1018f6d4], 0
je 0x1004e05c
cmp dword [0x1018f6c8], 0
je 0x1004e05c
cmp byte [0x1018ef7a], 0
jne 0x1004dfdb
push dword [0x1018f810]
mov ecx, dword [0x101d38bc]
call fcn.100048c2
push dword [0x1018f810]
mov ecx, dword [0x101d38c0]
call fcn.10003b26
test eax, eax
je 0x1004dfca
push 0xe49
call fcn.100e147f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
push ecx
push str.Tahoma
mov ecx, eax
call fcn.10003a2d
or dword [ebp - 4], 0xffffffff
mov ecx, eax
push dword [0x1018f810]
mov dword [0x101d38c0], eax
call fcn.10003b26
call fcn.10015f06
mov byte [0x1018ef7a], 1
jmp 0x1004e05c
cmp byte [0x101ecb48], 0
jne 0x1004dff0
call fcn.1001df40
mov byte [0x101ecb48], 1
cmp dword [0x1018f6d0], 0
je 0x1004e002
cmp dword [0x1018f6cc], 0
jne 0x1004e00b
cmp dword [0x1018f6dc], 0
je 0x1004e05c
call fcn.100171ab
call fcn.10018205
cmp byte [0x1018ee8a], 0
je 0x1004e02b
mov ecx, dword [0x1018f810]
call fcn.1001afd9
jmp 0x1004e055
call fcn.10091d5e
call fcn.100926d7
call fcn.10099f2f
call fcn.1001e5e6
call fcn.1009b1bb
call fcn.1009b418
call fcn.10098a5a
mov ecx, eax
call fcn.10091615
push ecx
call fcn.100251d6
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [0x1018f810]
push ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.100e1471
add ebp, 0x90
leave
ret 0x14