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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6a0bfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x521c
call fcn.005ba830
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.00533680
mov eax, dword [0x21f3f98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
mov ecx, 0x21f3fa0
call fcn.0052d500
mov edx, dword [0x6f3560]
mov eax, dword [0x6f355c]
add edx, 0xffffff80
push edx
add eax, 0xfffffe00
push eax
lea ecx, [esp + 0x20]
call fcn.00533950
mov eax, dword [0x21f3f98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x52d697
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x52d6a9
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 0x52d6e9
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x5234], 0xffffffff
je 0x52d6de
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
jmp 0x52db65
lea edx, [esp + 0x178]
push edx
push 0x104
call dword [0x6a831c]
mov ebx, dword [0x6a8554]
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x74]
push str._s_SCREENSHOT
push ecx
call ebx
mov esi, dword [0x6a8198]
add esp, 0xc
lea edx, [esp + 0x70]
push edx
call esi
test eax, eax
jne 0x52d741
push edi
lea eax, [esp + 0x74]
push eax
call dword [0x6a8194]
test eax, eax
je 0x52d741
lea ecx, [esp + 0x70]
push ecx
call esi
cmp edi, 0x3e8
push edi
jl 0x52d751
push str.Shaiya_d.jpg
jmp 0x52d778
cmp edi, 0x64
jl 0x52d762
push str.Shaiya0_d.jpg
lea eax, [esp + 0x78]
push eax
jmp 0x52d77d
cmp edi, 0xa
jl 0x52d773
push str.Shaiya00_d.jpg
lea ecx, [esp + 0x78]
push ecx
jmp 0x52d77d
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 [0x6a8190]
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x52d7c4
test dl, dl
je 0x52d7c0
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x52d7c4
add ecx, 2
add esi, 2
test dl, dl
jne 0x52d7a0
xor ecx, ecx
jmp 0x52d7c9
sbb ecx, ecx
sbb ecx, 0xffffffff
xor edx, edx
test ecx, ecx
sete dl
push eax
mov esi, edx
call dword [0x6a818c]
test esi, esi
jne 0x52d87d
cmp edi, 0x3e8
push edi
jl 0x52d7f1
push str.Shaiya_d.JPG
jmp 0x52d818
cmp edi, 0x64
jl 0x52d802
push str.Shaiya0_d.JPG
lea ecx, [esp + 0x78]
push ecx
jmp 0x52d81d
cmp edi, 0xa
jl 0x52d813
push str.Shaiya00_d.JPG
lea edx, [esp + 0x78]
push edx
jmp 0x52d81d
push str.Shaiya000_d.JPG
lea eax, [esp + 0x78]
push eax
call dword [0x6a8554]
add esp, 0xc
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x74]
push edx
call dword [0x6a8190]
lea esi, [esp + 0x2ac]
lea ecx, [esp + 0x70]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x52d868
test dl, dl
je 0x52d864
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x52d868
add ecx, 2
add esi, 2
test dl, dl
jne 0x52d844
xor ecx, ecx
jmp 0x52d86d
sbb ecx, ecx
sbb ecx, 0xffffffff
xor edx, edx
test ecx, ecx
sete dl
push eax
mov esi, edx
call dword [0x6a818c]
mov ebx, dword [0x6a8554]
inc edi
test esi, esi
jne 0x52d741
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 0x52db11
push eax
call dword [0x6a80d8]
mov ecx, dword [0x6f355c]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [0x6f3560]
push eax
push ecx
push edx
call dword [0x6a80cc]
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [0x6a80dc]
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 [0x6a80c8]
lea eax, [esp + 0x58]
push eax
push 0x18
push ebx
call dword [0x6a80c0]
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 [0x6a80ac]
test eax, eax
jne 0x52d968
push esi
call dword [0x6a80e4]
jmp 0x52da95
movzx eax, word [esp + 0x3a]
imul eax, dword [esp + 0x40]
push eax
call fcn.005bb3af
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x52d95c
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 [0x6a80ac]
test eax, eax
je 0x52dae7
xor eax, eax
mov ecx, 0x139a
lea edi, [esp + 0x3c0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c0]
push eax
call fcn.0056dbc0
test eax, eax
jne 0x52da85
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 fcn.0056dbba
test eax, eax
jne 0x52da85
lea eax, [esp + 0x3c0]
push eax
call fcn.0056dbb4
test eax, eax
je 0x52dae7
push esi
call dword [0x6a80e4]
push ebx
call fcn.005ba86d
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 [0x6a8198]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5234], 0xffffffff
call fcn.0041e5d0
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 [0x6a80d0]
push esi
call dword [0x6a80e4]
push ebx
call fcn.005ba86d
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 [0x6a8198]
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 0x52db34
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x5234], 0xffffffff
je 0x52db5f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x52db6d
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