Function at 0x532890
Capabilities:
Create directory
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x69ed7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x521c
call fcn.005b89a0
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.00538940
mov eax, dword [0x21f1c70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
mov ecx, 0x21f1c78
call fcn.005327b0
mov edx, dword [0x6f3560]
mov eax, dword [0x6f355c]
add edx, 0xffffff80
push edx
add eax, 0xfffffe00
push eax
lea ecx, [esp + 0x20]
call fcn.00538c10
mov eax, dword [0x21f1c70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x532947
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x532959
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 0x532999
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x5234], 0xffffffff
je 0x53298e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
jmp 0x532e15
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 0x5329f1
push edi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
je 0x5329f1
lea ecx, [esp + 0x70]
push ecx
call esi
cmp edi, 0x3e8
push edi
jl 0x532a01
push str.Shaiya_d.jpg
jmp 0x532a28
cmp edi, 0x64
jl 0x532a12
push str.Shaiya0_d.jpg
lea eax, [esp + 0x78]
push eax
jmp 0x532a2d
cmp edi, 0xa
jl 0x532a23
push str.Shaiya00_d.jpg
lea ecx, [esp + 0x78]
push ecx
jmp 0x532a2d
push str.Shaiya000_d.jpg
lea edx, [esp + 0x78]
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x532a74
test dl, dl
je 0x532a70
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x532a74
add ecx, 2
add esi, 2
test dl, dl
jne 0x532a50
xor ecx, ecx
jmp 0x532a79
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]
test esi, esi
jne 0x532b2d
cmp edi, 0x3e8
push edi
jl 0x532aa1
push str.Shaiya_d.JPG
jmp 0x532ac8
cmp edi, 0x64
jl 0x532ab2
push str.Shaiya0_d.JPG
lea ecx, [esp + 0x78]
push ecx
jmp 0x532acd
cmp edi, 0xa
jl 0x532ac3
push str.Shaiya00_d.JPG
lea edx, [esp + 0x78]
push edx
jmp 0x532acd
push str.Shaiya000_d.JPG
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x532b18
test dl, dl
je 0x532b14
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x532b18
add ecx, 2
add esi, 2
test dl, dl
jne 0x532af4
xor ecx, ecx
jmp 0x532b1d
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 0x5329f1
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 0x532dc1
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ecx, dword [0x6f355c]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [0x6f3560]
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 [0x6f3560]
mov edx, dword [0x6f355c]
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 0x532c18
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
jmp 0x532d45
movzx eax, word [esp + 0x3a]
imul eax, dword [esp + 0x40]
push eax
call fcn.005b951f
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x532c0c
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 0x532d97
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_ijlInit
test eax, eax
jne 0x532d35
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_ijlWrite
test eax, eax
jne 0x532d35
lea eax, [esp + 0x3c0]
push eax
call sub.ijl15.dll_ijlFree
test eax, eax
je 0x532d97
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
push ebx
call fcn.005b89dd
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.0041dfc0
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.005b89dd
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 0x532de4
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x5234], 0xffffffff
je 0x532e0f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x532e1d
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