Function at 0x4b8131
Capabilities:
Check if file exists
Encode data using xor
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa34
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0xa30], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x464]
push edi
push 0x3c
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x20], esi
call fcn.00468b40
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebx + 0x24], eax
lea eax, [esp + 0x18]
mov dword [0x1ff1f38], esi
mov dword [ebx + 0x18], 0x320
push 0x5ec588
push str.Config.bin
push eax
mov dword [ebx + 0x1c], 0x258
mov dword [ebx + 0x190], 0
mov dword [ebx + 0x20], 0x10
mov dword [esp + 0x42c], 0x280
mov dword [esp + 0x430], 0x1e0
mov dword [esp + 0x434], 0x20
mov dword [esp + 0x438], 0x320
mov dword [esp + 0x43c], 0x258
mov dword [esp + 0x440], 0x20
mov dword [esp + 0x444], 0x400
mov dword [esp + 0x448], 0x300
mov dword [esp + 0x44c], 0x20
mov dword [esp + 0x450], 0x556
mov dword [esp + 0x454], 0x300
mov dword [esp + 0x458], 0x20
mov dword [esp + 0x45c], 0x500
mov dword [esp + 0x460], 0x3c0
mov dword [esp + 0x464], 0x20
mov dword [esp + 0x468], 0x780
mov dword [esp + 0x46c], 0x438
mov dword [esp + 0x470], 0x20
mov dword [esp + 0x24], 0
call fcn.0046c5d4
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, 1
test eax, eax
je 0x4b7f45
push eax
push ecx
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.0047004e
push dword [esp + 0x28]
call fcn.0046bf19
movsx eax, word [esp + 0x6a]
add esp, 0x14
mov dword [0x6345e4], eax
mov dword [esp + 0x18], 0
jmp 0x4b7f68
movaps xmm0, xmmword [0x6055a0]
xor eax, eax
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], 0x10001
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov word [esp + 0x54], cx
push 0x5fd430
lea eax, [esp + 0x1c]
push str.lang.txt
push eax
call fcn.0046c5d4
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x4b8027
push 0x80
lea eax, [esp + 0x3a4]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x3a0]
push esi
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
je 0x4b801b
nop dword [eax]
mov al, byte [esp + 0x3a0]
cmp al, 0x23
je 0x4b7ffe
cmp al, 0x2f
je 0x4b7ffe
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x3a4]
push 0x5fd138
push eax
call fcn.00445a10
add esp, 0xc
test eax, eax
je 0x4b7ffe
mov eax, dword [esp + 0x30]
mov dword [0x6345e4], eax
push dword [esp + 0x18]
lea eax, [esp + 0x3a4]
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
jne 0x4b7fc0
push dword [esp + 0x18]
call fcn.0046bf19
add esp, 4
movsx esi, word [esp + 0x3a]
xorps xmm0, xmm0
movups xmmword [ebx + 0x1b4], xmm0
movq qword [ebx + 0x1c4], xmm0
lea eax, [esi - 2]
mov dword [ebx + 0x1cc], 0
cmp eax, 4
ja case.default.0x4b8054
jmp dword [eax*4 + 0x4b9704]
mov dword [ebx + 0x1bc], 0x320
mov dword [ebx + 0x1c0], 0x258
mov dword [ebx + 0x1c4], 0x3f800000
mov dword [ebx + 0x1c8], 0x3f800000
mov dword [ebx + 0x1cc], 0xc
jmp 0x4b8163
mov dword [ebx + 0x1bc], 0x378
mov dword [ebx + 0x1c0], 0x2a0
mov dword [ebx + 0x1c4], 0x3f933333
mov dword [ebx + 0x1c8], 0x3f933333
mov dword [ebx + 0x1cc], 0xf
jmp 0x4b8163
mov dword [ebx + 0x1bc], 0x436
mov dword [ebx + 0x1c0], 0x259
mov dword [ebx + 0x1c4], 0x3fa28f5c
mov dword [ebx + 0x1c8], 0x3fa28f5c
mov dword [ebx + 0x1cc], 0x10
jmp 0x4b8163
mov dword [ebx + 0x1bc], 0x324
mov dword [ebx + 0x1c0], 0x259
mov dword [ebx + 0x1c4], 0x3fcb851f
mov dword [ebx + 0x1c8], 0x3fcb851f
mov dword [ebx + 0x1cc], 0x13
jmp 0x4b8163
mov dword [ebx + 0x1bc], 0x556
mov dword [ebx + 0x1c0], 0x300
mov dword [ebx + 0x1c4], 0x3fb851ec
mov dword [ebx + 0x1c8], 0x3fb851ec
mov dword [ebx + 0x1cc], 0x12
lea eax, [esi - 1]
mov byte [ebx + 0x1b4], 1
mov dword [ebx + 0x1b8], eax
lea eax, [esi - 1]
mov ecx, ebx
push eax
call fcn.004b3310
movsx eax, word [esp + 0x3e]
mov dx, word [esp + 0x4a]
movsx ecx, word [esp + 0x44]
movsx edi, word [esp + 0x46]
mov dword [ebx + 0x190], eax
movsx eax, word [esp + 0x40]
mov dword [ebx + 0x194], eax
movsx eax, word [esp + 0x48]
mov dword [0x1ff1f34], 0
mov dword [0x1ff1f30], 1
mov dword [0x1ff1f2c], 0
mov dword [0x626d58], eax
test dx, dx
js 0x4b81db
xor eax, eax
test dx, dx
sete al
mov dword [ebx + 0x24], eax
movsx eax, word [esp + 0x52]
mov dword [0x1ff1f28], eax
xor eax, eax
cmp word [esp + 0x50], ax
mov dword [ebx + 0x198], 1
setle al
mov dword [0x624d08], 0x1e
mov dword [0x624d0c], eax
xor eax, eax
cmp word [esp + 0x4e], ax
setg al
mov dword [0x626b14], eax
test ecx, ecx
jns 0x4b821f
xor ecx, ecx
jmp 0x4b8229
mov eax, 0x64
cmp ecx, eax
cmovg ecx, eax
cmp edi, 1
mov dword [str.2___], ecx
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x628e30], 1
jne 0x4b8250
mov dword [0x9c2580], 0
jmp 0x4b828a
push 0x81
push dword [esp + 0x18]
mov dword [0x9c2580], 2
call edi
push 0x82
push dword [esp + 0x18]
mov dword [0x9c257c], eax
call edi
mov dword [0x9c2578], eax
mov eax, dword [0x9c257c]
test eax, eax
je 0x4b828a
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esi + esi*2]
xor esi, esi
mov ecx, dword [esp + eax*4 + 0x414]
mov edi, dword [esp + eax*4 + 0x41c]
mov dword [esp + 0x30], ecx
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x418]
lea eax, [esp + 0x420]
push 0x9c
push esi
push eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edi
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x420]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x4b8319
nop
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x48c], eax
jne 0x4b8303
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x490], eax
jne 0x4b8303
cmp dword [esp + 0x488], edi
je 0x4b832e
lea eax, [esp + 0x420]
inc esi
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x4b82e0
mov dword [ebx + 0x18], 0x320
mov dword [ebx + 0x1c], 0x258
mov dword [ebx + 0x20], 0x20
mov eax, dword [ebx + 0x18]
cmp eax, 0x400
ja 0x4b835d
je 0x4b8356
cmp eax, 0x280
je 0x4b834f
cmp eax, 0x320
jne 0x4b8364
mov eax, 0xc
jmp 0x4b8370
mov eax, 0xa
jmp 0x4b8370
mov eax, 0xe
jmp 0x4b8370
cmp eax, 0x500
je 0x4b836b
mov eax, 0x18
jmp 0x4b8370
mov eax, 0x14
cmp byte [ebx + 0x1b4], 0
je 0x4b83a5
movd xmm0, dword [ebx + 0x1bc]
mov eax, dword [ebx + 0x1cc]
cvtdq2ps xmm0, xmm0
movss dword [0x626b2c], xmm0
movd xmm0, dword [ebx + 0x1c0]
cvtdq2ps xmm0, xmm0
movss dword [0x626b28], xmm0
push 0x3e800
push 0
push 0x7d97b0
mov dword [0x626b24], eax
mov dword [0x626b20], 0x200
call fcn.00468b40
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x420]
push 0x100
push 0
push eax
call fcn.00468b40
mov eax, dword [0x6345e4]
add esp, 0xc
test eax, eax
jne 0x4b83fc
push str.strdef.bin
push str.LangPT_s
jmp 0x4b840b
cmp eax, 1
jne 0x4b8420
push str.strdef.bin
push str.LangEN_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x420]
push eax
call edi
test eax, eax
jne 0x4b8453
push str.strdef.bin
push str.LangPT_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec588
lea eax, [esp + 0x424]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x1c]
xor esi, esi
add esp, 0xc
mov dword [esp + 0x30], esi
test eax, eax
je 0x4b84af
push eax
push 1
push 0x3e800
push 0x7d97b0
call fcn.0047004e
push dword [esp + 0x20]
lea eax, [esp + 0x44]
push 1
push 4
push eax
call fcn.0047004e
push dword [esp + 0x30]
call fcn.0046bf19
mov esi, dword [esp + 0x54]
add esp, 0x24
mov edx, 0x3e800
mov ecx, 0x7d97b0
call fcn.0049bb20
cmp esi, eax
jne 0x4b8511
movaps xmm2, xmmword [0x6057b0]
mov eax, 0x7d97c0
nop
mov ecx, 2
movups xmm0, xmmword [eax - 0x10]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax - 0x10], xmm0
movups xmm0, xmmword [eax]
xorps xmm0, xmm2
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
xorps xmm1, xmm0
movups xmmword [eax + 0x10], xmm1
movups xmm0, xmmword [eax + 0x20]
xorps xmm0, xmm2
movups xmmword [eax + 0x20], xmm0
add eax, 0x40
sub ecx, 1
jne 0x4b84d5
cmp eax, 0x817fc0
jl 0x4b84d0
push 0x100
lea eax, [esp + 0x424]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.00468b40
mov eax, dword [0x6345e4]
add esp, 0xc
test eax, eax
jne 0x4b8545
push str.EffectString.txt
push str.LangPT_s
jmp 0x4b8554
cmp eax, 1
jne 0x4b8569
push str.EffectString.txt
push str.LangEN_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0x420]
push eax
call edi
test eax, eax
jne 0x4b8596
push str.EffectString.txt
push str.LangPT_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec588
lea eax, [esp + 0x424]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4b85ec
mov esi, 0x904650
nop dword [eax]
push esi
push str._24s
push eax
call fcn.0044c0e0
add esi, 0x18
add esp, 0xc
cmp esi, 0x904bd8
jge 0x4b85e0
mov eax, dword [esp + 0x10]
jmp 0x4b85c0
push dword [esp + 0x10]
call fcn.0046bf19
add esp, 4
mov eax, dword [0x6345e4]
mov dword [esp + 0x30], 0
test eax, eax
jne 0x4b8609
push str.EffectSubString.txt
push str.LangPT_s
jmp 0x4b8618
cmp eax, 1
jne 0x4b862d
push str.EffectSubString.txt
push str.LangEN_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0x420]
push eax
call edi
test eax, eax
jne 0x4b865a
push str.EffectSubString.txt
push str.LangPT_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec588
lea eax, [esp + 0x424]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
je 0x4b86ad
mov esi, 0x7d96c0
push esi
push 0x5ec718
push eax
call fcn.0044c0e0
add esi, 0x18
add esp, 0xc
cmp esi, 0x7d97b0
jge 0x4b86a1
mov eax, dword [esp + 0x30]
jmp 0x4b8681
push dword [esp + 0x30]
call fcn.0046bf19
add esp, 4
push 0x5fd430
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push str.sn.txt
push eax
call fcn.0046c5d4
mov esi, dword [esp + 0x3c]
add esp, 0xc
test esi, esi
je 0x4b885f
push 0x80
lea eax, [esp + 0x3a4]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x3a0]
push esi
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
je 0x4b8853
nop dword [eax]
mov al, byte [esp + 0x3a0]
cmp al, 0x23
je 0x4b882c
cmp al, 0x2f
je 0x4b882c
push 8
lea eax, [esp + 0x388]
mov dword [esp + 0x3a0], 0
push eax
push 0xc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
push eax
push 0xc
lea eax, [esp + 0x3a8]
xorps xmm0, xmm0
push eax
push 8
lea eax, [esp + 0x3a8]
movlpd qword [esp + 0x3a8], xmm0
push eax
lea eax, [esp + 0x3c0]
movq qword [esp + 0x3b4], xmm0
push str._s__s__s__s
push eax
movq qword [esp + 0x48], xmm0
movlpd qword [esp + 0x3ac], xmm0
call fcn.00445a10
add esp, 0x28
test eax, eax
je 0x4b882c
lea eax, [esp + 0x38c]
push eax
call fcn.0046fe36
add esp, 4
mov esi, eax
lea eax, [esp + 0x394]
mov dword [esp + 0x10], esi
push eax
push 0x5ec718
lea eax, [esi*8 + 0x18b13b0]
add eax, esi
push 9
push eax
call fcn.004459c0
lea eax, [esp + 0x394]
push eax
call fcn.0046fe36
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4b8825
imul esi, esi, 0x5a
mov edi, eax
add esi, 0x1ff1f40
nop word [eax + eax]
lea eax, [esp + 0x20]
push eax
push 0x5ec718
push 9
push esi
call fcn.004459c0
add esp, 0x10
add esi, 9
sub edi, 1
jne 0x4b8800
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esi*4 + 0x18b1380], eax
push dword [esp + 0x30]
lea eax, [esp + 0x3a4]
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
jne 0x4b8710
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push dword [esp + 0x30]
call fcn.0046bf19
add esp, 4
cmp dword [ebx + 0xc], 0
jne 0x4b8964
mov esi, dword [esp + 0x14]
push 0x6b
push esi
mov dword [esp + 0x3a8], 8
mov dword [esp + 0x3ac], 0x4b9720
mov dword [esp + 0x3b0], 0
mov dword [esp + 0x3b4], 0
mov dword [esp + 0x3b8], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x3bc], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x3bc], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x3bc], eax
lea eax, [esp + 0x3a0]
push eax
mov dword [esp + 0x3c4], 0
mov dword [esp + 0x3c8], 0x5eeecc
call dword [sym.imp.USER32.dll_RegisterClassA]
push dword [ebx + 0x1c]
cmp dword [ebx + 0x24], 0
mov ecx, 0x10ca0000
push dword [ebx + 0x18]
mov eax, 0x90000000
cmove eax, ecx
push 0
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
push dword [ebx + 0x14]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0
push esi
push 0
push 0
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push eax
push 0
push 0
push dword [ebx + 0x14]
lea eax, [ebx + 0x28]
push eax
push 0x5eeecc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebx + 0xc], eax
call fcn.0049b840
test eax, eax
jne 0x4b89a7
push eax
push str.Error
push str.Initialize_Data_Failed
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Initialize_Data_Failed_r_n
call fcn.005865a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8
call fcn.004e6990
call fcn.005896e0
push 0x5ec588
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push str.._itemicon.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x4b89f6
push eax
push 1
push 0x6590
push 0x8fe0a8
call fcn.0047004e
push dword [esp + 0x24]
call fcn.0046bf19
add esp, 0x14
push 0x100
lea eax, [esp + 0x424]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.00468b40
mov eax, dword [0x6345e4]
add esp, 0xc
test eax, eax
jne 0x4b8a2a
push str.Itemname.bin
push str.LangPT_s
jmp 0x4b8a39
cmp eax, 1
jne 0x4b8a4e
push str.Itemname.bin
push str.LangEN_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0x420]
push eax
call edi
test eax, eax
jne 0x4b8a7b
push str.Itemname.bin
push str.LangPT_s
lea eax, [esp + 0x428]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec588
lea eax, [esp + 0x424]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0046c5d4
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
je 0x4b8b7c
xor esi, esi
push 0x100
lea eax, [esp + 0x63c]
mov dword [esp + 0x18], 0xffffffff
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x14]
push edi
push 1
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b8b70
push dword [esp + 0x10]
lea eax, [esp + 0x63c]
push 1
push 0x40
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b8b70
xor eax, eax
nop word [eax + eax]
sub byte [esp + eax + 0x638], al
inc eax
cmp eax, 0x3e
jl 0x4b8b00
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
je 0x4b8b5e
cmp edx, 0x1964
jge 0x4b8b5e
lea ecx, [esp + 0x638]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8b28
sub ecx, edi
cmp ecx, 0x3f
jb 0x4b8b40
mov word [esp + 0x676], 0
lea eax, [esp + 0x638]
push eax
lea eax, [edx + edx*8]
shl eax, 4
add eax, 0x817fb0
push 0x40
push eax
call fcn.0046c1a2
add esp, 0xc
inc esi
cmp esi, 0x1964
jge 0x4b8b70
mov edi, dword [esp + 0x10]
jmp 0x4b8aa3
push dword [esp + 0x10]
call fcn.0046bf19
add esp, 4
mov esi, dword [0x6345e4]
test esi, esi
je 0x4b8d1b
push 0x100
lea eax, [esp + 0x5c]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.00468b40
add esp, 0xc
cmp esi, 1
jne 0x4b8bc7
push str.Itemnamebr.bin
push str.LangEN_s
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x4b8bf4
push str.Itemnamebr.bin
push str.LangPT_s
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec588
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0046c5d4
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4b8d4d
mov edi, 0x9c25f0
mov esi, 0x817fb0
push esi
push 0x40
push edi
call fcn.0046c1a2
add esi, 0x90
add esp, 0xc
add edi, 0x40
cmp esi, 0x8fc7f0
jl 0x4b8c20
xor esi, esi
nop
push 0x100
lea eax, [esp + 0x73c]
mov dword [esp + 0x18], 0xffffffff
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x14]
push dword [esp + 0x10]
push 1
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b8d09
push dword [esp + 0x10]
lea eax, [esp + 0x73c]
push 1
push 0x40
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b8d09
xor eax, eax
nop word [eax + eax]
sub byte [esp + eax + 0x738], al
inc eax
cmp eax, 0x3e
jl 0x4b8ca0
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
je 0x4b8cfc
cmp edx, 0x1964
jge 0x4b8cfc
lea ecx, [esp + 0x738]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8cc8
sub ecx, edi
cmp ecx, 0x3f
jb 0x4b8ce0
mov word [esp + 0x776], 0
lea eax, [esp + 0x738]
shl edx, 6
push eax
add edx, 0x9c25f0
push 0x40
push edx
call fcn.0046c1a2
add esp, 0xc
inc esi
cmp esi, 0x1964
jl 0x4b8c40
push dword [esp + 0x10]
call fcn.0046bf19
mov esi, dword [0x6345e4]
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x100
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], 0
push 0
push eax
call fcn.00468b40
add esp, 0xc
test esi, esi
jne 0x4b8d55
push str.UIString.txt
push str.LangPT_s
jmp 0x4b8d64
mov esi, dword [0x6345e4]
jmp 0x4b8d21
cmp esi, 1
jne 0x4b8d76
push str.UIString.txt
push str.LangEN_s
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x4b8d9d
push str.UIString.txt
push str.LangPT_s
lea eax, [esp + 0x60]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
push 0x5ec6e4
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0046c5d4
mov esi, dword [esp + 0x3c]
add esp, 0xc
test esi, esi
je 0x4b8e88
push 0x80
lea eax, [esp + 0x424]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x420]
push esi
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
je 0x4b8e7c
push 0x40
lea eax, [esp + 0x3a4]
push 0
push eax
call fcn.00468b40
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x3a0]
push 0x40
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x42c]
push str._d__s
push eax
call fcn.00445a10
add esp, 0x14
cmp eax, 2
jne 0x4b8e5b
push 0x40
lea eax, [esp + 0x3a4]
push eax
mov eax, dword [esp + 0x1c]
shl eax, 6
add eax, 0xa5f4e0
push 0x40
push eax
call fcn.0046c000
add esp, 0x10
push dword [esp + 0x30]
lea eax, [esp + 0x424]
push 0x80
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
jne 0x4b8df5
push dword [esp + 0x30]
call fcn.0046bf19
add esp, 4
push 0x5ec588
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push str.._UI_AmountItems.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4b8f41
cmp dword [0x1ff9a88], 0
je 0x4b8eca
mov ecx, 0x1ff9a80
call fcn.0044d6c0
mov eax, dword [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b8f35
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, 0x1ff9a80
mov dword [esp + 0x384], eax
mov dword [esp + 0x388], eax
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x390]
push eax
call fcn.00450130
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 1
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
jne 0x4b8ef0
push dword [esp + 0x10]
call fcn.0046bf19
add esp, 4
push 0x100
push 0x40
push 0x8000
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
push str.._UI_demo5.bin
push eax
call fcn.00476d9e
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, 0xffffffff
je 0x4b9035
push eax
mov dword [esp + 0x18], 0
call fcn.0047792c
add esp, 4
push 0x210
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x58]
push 0x210
push eax
push dword [esp + 0x18]
call fcn.00477e13
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x58]
cmp cl, 0x40
je 0x4b8fbf
cmp cl, 0x5f
jne 0x4b8fc4
mov byte [esp + eax + 0x58], 0x20
inc eax
cmp eax, 0x10
jl 0x4b8fb1
lea eax, [esp + 0x58]
mov ecx, 0x84
mov dword [esp + 0x420], eax
lea edi, [esp + 0x424]
mov esi, eax
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x388]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00450340
mov esi, dword [esp + 0x14]
push dword [esp + 0x10]
inc esi
mov dword [esp + 0x18], esi
call fcn.0047792c
mov ecx, eax
add esp, 4
mov eax, 0x3e0f83e1
mul ecx
shr edx, 7
cmp esi, edx
jbe 0x4b8f85
push dword [esp + 0x10]
call fcn.00477179
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 4
push 0x5ec588
lea eax, [esp + 0x18]
push str.NUI_ItemPack.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x4b906f
push 0x10
push str.Error
push str.Missing_ItemPack.bin_file
push 0
call esi
jmp 0x4b910c
push eax
push 0x12750
push 1
push 0xa4cd90
call fcn.0047004e
movaps xmm2, xmmword [0x6057b0]
add esp, 0x10
xor eax, eax
mov ecx, 0xa4cd90
mov edx, 0xa4cdb0
mov edi, 0xa4cdc0
nop dword [eax]
movups xmm0, xmmword [eax + ecx]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax + ecx], xmm0
movups xmm0, xmmword [eax + 0xa4cda0]
xorps xmm1, xmm0
movups xmmword [eax + 0xa4cda0], xmm1
movups xmm0, xmmword [eax + edx]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax + edx], xmm1
movups xmm0, xmmword [eax + edi]
xorps xmm0, xmm2
movups xmmword [eax + edi], xmm0
add eax, 0x40
cmp eax, 0x12740
jl 0x4b90a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 0x12750
jge 0x4b9100
lea eax, [eax + 0xa4cd90]
xor byte [eax], 0x5a
inc eax
cmp eax, 0xa5f4e0
jl 0x4b90f5
push dword [esp + 0x14]
call fcn.0046bf19
add esp, 4
push 0x5ec588
lea eax, [esp + 0x18]
push str.NUI_ItemKey.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x4b913f
push 0x10
push str.Error
push str.Missing_ItemKey.bin_file
push eax
call esi
jmp 0x4b91dc
push eax
push 0x12750
push 1
push 0xa3a640
call fcn.0047004e
movaps xmm2, xmmword [0x6057b0]
add esp, 0x10
xor eax, eax
mov ecx, 0xa3a640
mov edx, 0xa3a660
mov edi, 0xa3a670
nop dword [eax]
movups xmm0, xmmword [eax + ecx]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax + ecx], xmm1
movups xmm0, xmmword [eax + 0xa3a650]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax + 0xa3a650], xmm0
movups xmm0, xmmword [eax + edx]
xorps xmm0, xmm2
movups xmmword [eax + edx], xmm0
movups xmm0, xmmword [eax + edi]
xorps xmm1, xmm0
movups xmmword [eax + edi], xmm1
add eax, 0x40
cmp eax, 0x12740
jl 0x4b9170
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 0x12750
jge 0x4b91d0
lea eax, [eax + 0xa3a640]
xor byte [eax], 0x5a
inc eax
cmp eax, 0xa4cd90
jl 0x4b91c5
push dword [esp + 0x14]
call fcn.0046bf19
add esp, 4
push 0x5ec588
lea eax, [esp + 0x18]
push str.NUI_ItemRoll.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x4b920f
push 0x10
push str.Error
push str.Missing_ItemLuck.bin_file
push eax
call esi
jmp 0x4b92a7
push eax
push 0x12750
push 1
push 0xa27ef0
call fcn.0047004e
movaps xmm1, xmmword [0x6057b0]
add esp, 0x10
xor eax, eax
mov ecx, 0xa27ef0
mov edx, 0xa27f10
mov edi, 0xa27f20
nop dword [eax]
movups xmm0, xmmword [eax + ecx]
xorps xmm0, xmm1
movups xmmword [eax + ecx], xmm0
movups xmm0, xmmword [eax + 0xa27f00]
xorps xmm0, xmm1
movups xmmword [eax + 0xa27f00], xmm0
movups xmm0, xmmword [eax + edx]
xorps xmm0, xmm1
movups xmmword [eax + edx], xmm0
movups xmm0, xmmword [eax + edi]
xorps xmm0, xmm1
movups xmmword [eax + edi], xmm0
add eax, 0x40
cmp eax, 0x12740
jl 0x4b9240
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 0x12750
jge 0x4b929b
lea eax, [eax + 0xa27ef0]
nop
xor byte [eax], 0x5a
inc eax
cmp eax, 0xa3a640
jl 0x4b9290
push dword [esp + 0x14]
call fcn.0046bf19
add esp, 4
push 0x5ec588
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push str.._UI_demo6.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4b937e
cmp dword [0x1ff9aa8], 0
je 0x4b92e9
mov ecx, 0x1ff9aa0
call fcn.0044d6c0
mov eax, dword [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], 0
push 4
push eax
mov dword [esp + 0x24], 0
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b9372
nop
push dword [esp + 0x10]
lea eax, [esp + 0x34]
push 1
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
je 0x4b9372
mov eax, dword [esp + 0x14]
mov ecx, 0x1ff9aa0
mov dword [esp + 0x384], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x388], eax
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x390]
push eax
call fcn.00450130
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 1
push 4
push eax
call fcn.0047004e
add esp, 0x10
test eax, eax
jne 0x4b9310
push dword [esp + 0x10]
call fcn.0046bf19
add esp, 4
push 0x320
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00468b40
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0x5ec588
push str.ItemPrice.bin
push eax
call fcn.0046c5d4
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x4b93d7
push eax
push 1
lea eax, [esp + 0x60]
push 0x320
push eax
call fcn.0047004e
push dword [esp + 0x24]
call fcn.0046bf19
add esp, 0x14
xor edx, edx
lea esi, [esp + 0x58]
nop dword [eax]
mov eax, dword [esi + edx*8]
test eax, eax
je 0x4b9467
lea ecx, [eax + eax*8]
mov eax, dword [esp + edx*8 + 0x5c]
shl ecx, 4
mov dword [ecx + 0x818030], eax
mov eax, dword [esp + edx*8 + 0x60]
test eax, eax
je 0x4b9467
lea ecx, [eax + eax*8]
mov eax, dword [esp + edx*8 + 0x64]
shl ecx, 4
mov dword [ecx + 0x818030], eax
mov eax, dword [esp + edx*8 + 0x68]
test eax, eax
je 0x4b9467
lea ecx, [eax + eax*8]
mov eax, dword [esp + edx*8 + 0x6c]
shl ecx, 4
mov dword [ecx + 0x818030], eax
mov eax, dword [esp + edx*8 + 0x70]
test eax, eax
je 0x4b9467
lea ecx, [eax + eax*8]
mov eax, dword [esp + edx*8 + 0x74]
shl ecx, 4
mov dword [ecx + 0x818030], eax
mov eax, dword [esp + edx*8 + 0x78]
test eax, eax
je 0x4b9467
lea ecx, [eax + eax*8]
mov eax, dword [esp + edx*8 + 0x7c]
shl ecx, 4
add edx, 5
mov dword [ecx + 0x818030], eax
cmp edx, 0x64
jl 0x4b93e0
push 0x740b08
push 0
push 0x18b1420
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x938]
push 0x100
push 0
push eax
call fcn.00468b40
mov eax, dword [0x6345e4]
add esp, 0xc
test eax, eax
jne 0x4b94a7
push str.itemhelp.dat
push str.LangPT_s
jmp 0x4b94b6
cmp eax, 1
jne 0x4b94cb
push str.itemhelp.dat
push str.LangEN_s
lea eax, [esp + 0x940]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0x938]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x4b94fe
push str.itemhelp.dat
push str.LangPT_s
lea eax, [esp + 0x940]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
call fcn.004b6010
push 0x5ec6e4
lea eax, [esp + 0x93c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0046c5d4
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x4b954e
push 0
push str.Error
push str.Cant_open_itemhelp.dat
push dword [ebx + 0xc]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x384], eax
mov word [esp + 0x388], ax
mov byte [esp + 0x38a], al
lea eax, [esp + 0x840]
push eax
call fcn.00468b40
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0
mov edi, 0x1964
xor esi, esi
nop dword [eax]
nop word [eax + eax]
push dword [esp + 0x18]
lea eax, [esp + 0x83c]
push 0x100
push eax
call fcn.0046c197
add esp, 0xc
test eax, eax
je 0x4b96ad
test esi, esi
jne 0x4b95e2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x83c]
push 0x5fd138
push eax
call fcn.0044c130
add esp, 0xc
inc esi
jmp 0x4b95a0
xor eax, eax
mov dword [esp + 0x37c], eax
mov word [esp + 0x380], ax
mov byte [esp + 0x382], al
lea eax, [esp + 0x838]
push 6
push eax
lea eax, [esp + 0x384]
push eax
call fcn.0046bca0
add esp, 0xc
mov byte [esp + 0x382], 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x380]
push 0x5fd48c
push eax
call fcn.0044c130
add esp, 0xc
lea eax, [esp + 0x838]
push 0x5fd490
push eax
call fcn.00467d20
add esp, 8
test eax, eax
je 0x4b9652
mov byte [eax], 0
mov al, byte [esp + 0x840]
cmp al, 9
je 0x4b9661
cmp al, 0x20
jne 0x4b968c
imul ecx, dword [esp + 0x1c], 0x492
lea eax, [esp + 0x841]
push eax
mov eax, esi
shl eax, 7
push 0x5ec718
lea eax, [eax + 0x18b13b2]
add eax, ecx
push eax
call fcn.00445aa0
add esp, 0xc
imul ecx, dword [esp + 0x1c], 0x249
mov ax, word [esp + 0x34]
add ecx, esi
inc esi
mov word [ecx*2 + 0x18b141e], ax
cmp esi, 0xa
jl 0x4b95a0
sub edi, 1
jne 0x4b9591
push dword [esp + 0x18]
call fcn.0046bf19
add esp, 4
cmp dword [ebx + 0x170], edi
je 0x4b96e4
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.004b6ed0
mov ecx, dword [esp + 0xa3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8