Function at 0x543fc0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6b38ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x521c
call fcn.005cd2a0
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
push 0x80
push 0x200
push str.loading_title.tga
push str.data_interface
lea ecx, [esp + 0x28]
mov dword [esp + 0x5244], edi
call fcn.005497a0
mov eax, dword [0x2209400]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
mov ecx, 0x2209408
call fcn.00542d40
mov edx, dword [0x7085a0]
mov eax, dword [0x70859c]
add edx, 0xffffff80
push edx
add eax, 0xfffffe00
push eax
lea ecx, [esp + 0x20]
call fcn.00549a70
mov eax, dword [0x2209400]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x544077
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x544089
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x408]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
push edi
push eax
call dword [edx + 0x48]
test eax, eax
jge 0x5440c9
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x5234], 0xffffffff
je 0x5440be
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
jmp 0x544561
lea edx, [esp + 0x178]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x74]
push str._s_SCREENSHOT
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0xc
lea edx, [esp + 0x70]
push edx
call esi
test eax, eax
jne 0x544121
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x544121
lea ecx, [esp + 0x70]
push ecx
call esi
cmp edi, 0x3e8
push edi
push str.Shaiya
jl 0x544136
push str._s_d.jpg
jmp 0x54415d
cmp edi, 0x64
jl 0x544147
push str._s0_d.jpg
lea eax, [esp + 0x7c]
push eax
jmp 0x544162
cmp edi, 0xa
jl 0x544158
push str._s00_d.jpg
lea ecx, [esp + 0x7c]
push ecx
jmp 0x544162
push str._s000_d.jpg
lea edx, [esp + 0x7c]
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x28], eax
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
lea esp, [esp]
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x5441b4
test dl, dl
je 0x5441b0
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x5441b4
add ecx, 2
add esi, 2
test dl, dl
jne 0x544190
xor ecx, ecx
jmp 0x5441b9
sbb ecx, ecx
sbb ecx, 0xffffffff
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
sete dl
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x54427f
cmp edi, 0x3e8
push edi
push str.Shaiya
jl 0x5441ea
push str._s_d.JPG
jmp 0x544211
cmp edi, 0x64
jl 0x5441fb
push str._s0_d.JPG
lea edx, [esp + 0x7c]
push edx
jmp 0x544216
cmp edi, 0xa
jl 0x54420c
push str._s00_d.JPG
lea eax, [esp + 0x7c]
push eax
jmp 0x544216
push str._s000_d.JPG
lea ecx, [esp + 0x7c]
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x280]
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
lea esp, [esp]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x544264
test dl, dl
je 0x544260
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x544264
add ecx, 2
add esi, 2
test dl, dl
jne 0x544240
xor ecx, ecx
jmp 0x544269
sbb ecx, ecx
sbb ecx, 0xffffffff
xor edx, edx
test ecx, ecx
sete dl
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
inc edi
test esi, esi
jne 0x544121
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54450d
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [0x70859c]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [0x7085a0]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x7085a0]
mov edx, dword [0x70859c]
push 0xcc0020
xor edi, edi
push edi
push edi
push eax
push ecx
push edx
push edi
push edi
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x58]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push edi
lea edx, [esp + 0x30]
push edx
push edi
push eax
push edi
push ebx
push esi
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov word [esp + 0x54], 1
mov word [esp + 0x56], 0x18
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x544364
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x544491
movzx eax, word [esp + 0x3a]
imul eax, dword [esp + 0x40]
push eax
call fcn.005cde20
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x544358
movzx ecx, word [esp + 0x3a]
imul ecx, dword [esp + 0x40]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x30]
push eax
push ebx
push ecx
push 0
push edx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x5444e3
xor eax, eax
mov ecx, 0x139a
lea edi, [esp + 0x3c0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c0]
push eax
call sub.ijl15.dll_Ordinal_2
test eax, eax
jne 0x544481
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, ecx
neg edx
mov dword [esp + 0x3cc], edx
mov dword [esp + 0x3c8], eax
mov dword [esp + 0x3ec], eax
lea eax, [eax + eax*2]
lea edx, [esp + 0x70]
mov dword [esp + 0x3e0], edx
lea edx, [eax + 3]
and edx, 0xfffffffc
sub edx, eax
mov dword [esp + 0x3f0], ecx
mov ecx, 3
push 8
lea eax, [esp + 0x3c4]
push eax
mov dword [esp + 0x3cc], ebx
mov dword [esp + 0x3e0], 2
mov dword [esp + 0x3dc], ecx
mov dword [esp + 0x3d8], edx
mov dword [esp + 0x400], ecx
mov dword [esp + 0x3fc], ecx
mov dword [esp + 0x418], 0x5a
call sub.ijl15.dll_Ordinal_5
test eax, eax
jne 0x544481
lea eax, [esp + 0x3c0]
push eax
call sub.ijl15.dll_Ordinal_3
test eax, eax
je 0x5444e3
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call fcn.005cdc59
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x40]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x178]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5234], 0xffffffff
call fcn.0041ff00
mov ecx, dword [esp + 0x522c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call fcn.005cdc59
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 4
push edx
push eax
call dword [ecx + 0x40]
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 8]
lea eax, [esp + 0x70]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x544530
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x5234], 0xffffffff
je 0x54455b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x544569
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x522c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4