Function at 0x416f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
or edi, 0xffffffff
cmp dword [0x6a42b4], edi
jne 0x416fca
lea eax, [ebp - 0x104]
push str.TextureStatusIcon.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x104]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0047e110
add esp, 0x14
xor ecx, ecx
cmp byte [ebp - 0x11c], 1
push 0
sete cl
lea edx, [ebp - 0x104]
lea esi, [ecx*4 + 0x15]
mov ecx, dword [0x5f483c]
push esi
push edx
call fcn.004a4cf0
cmp dword [0x5eaaa0], 0
mov dword [0x6a42b4], eax
je 0x416fca
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x416fbf
push 0x31545844
jmp 0x416fc4
push 0x34545844
push eax
call fcn.004a4b60
cmp dword [0x6424c0], edi
jne 0x41705c
lea eax, [ebp - 0x104]
push str.TextureSkill.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x104]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0047e110
add esp, 0x14
xor ecx, ecx
cmp byte [ebp - 0x11c], 1
push 0
sete cl
lea edx, [ebp - 0x104]
lea esi, [ecx*4 + 0x15]
mov ecx, dword [0x5f483c]
push esi
push edx
call fcn.004a4cf0
cmp dword [0x5eaaa0], 0
mov dword [0x6424c0], eax
je 0x41705c
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x417051
push 0x31545844
jmp 0x417056
push 0x34545844
push eax
call fcn.004a4b60
cmp dword [0x5659c8], edi
jne 0x417105
lea eax, [ebp - 0x104]
push str.TextureItem.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x104]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0047e110
xor ecx, ecx
add esp, 0x14
cmp byte [ebp - 0x11c], 1
push 0
sete cl
cmp dword [0x64123c], 0
lea esi, [ecx*4 + 0x15]
mov ecx, dword [0x5f483c]
push esi
je 0x4170ce
lea edx, [ebp - 0x104]
push edx
call fcn.004a51d0
jmp 0x4170da
lea eax, [ebp - 0x104]
push eax
call fcn.004a4cf0
cmp dword [0x5eaaa0], 0
mov dword [0x5659c8], eax
je 0x417105
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x4170fa
push 0x31545844
jmp 0x4170ff
push 0x34545844
push eax
call fcn.004a4b60
push ebx
mov ebx, 0x5397f8
xor esi, esi
lea ecx, [ecx]
cmp dword [esi + 0x6a3000], edi
jne 0x41723d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417121
sub eax, edx
je 0x41723d
push ebx
lea ecx, [ebp - 0x104]
push str.Char_s.txb
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x104]
push edx
call fcn.004318d0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0047e110
xor edx, edx
add esp, 0x18
cmp byte [ebp - 0x11c], 1
push 1
sete dl
cmp dword [0x64123c], 0
lea edi, [edx*4 + 0x15]
je 0x41719d
mov eax, dword [0x41ec330]
push edi
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [0x5f483c]
call fcn.004a5380
jmp 0x4171b8
mov edx, dword [0x41ec330]
mov ecx, dword [0x5f483c]
push 0x15
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004a4f60
cmp dword [0x5eaaa0], 0
mov dword [esi + 0x6a3000], eax
je 0x4171ed
cmp edi, 0x19
jne 0x4171d6
push 0x31545844
mov ecx, eax
push ecx
jmp 0x4171e2
mov edx, dword [esi + 0x6a3000]
push 0x34545844
push edx
mov ecx, dword [0x5f483c]
call fcn.004a4b60
mov eax, dword [esi + 0x6a3000]
mov ecx, dword [0x5f483c]
mov edx, dword [ecx + eax*4 + 0x11414]
fild dword [ecx + eax*4 + 0x11414]
test edx, edx
jns 0x417211
fadd dword [0x4e4558]
fstp dword [esi + 0x53b0b8]
mov eax, dword [ecx + eax*4 + 0x11814]
mov dword [ebp - 0x128], eax
fild dword [ebp - 0x128]
test eax, eax
jns 0x417234
fadd dword [0x4e4558]
fstp dword [esi + 0x6333d8]
or edi, 0xffffffff
add ebx, 0x20
add esi, 4
cmp ebx, 0x539bb8
jl 0x417110
cmp dword [0x539bb8], edi
jne 0x417357
lea ecx, [ebp - 0x104]
push str.CharEmotion.txb
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x104]
push edx
call fcn.004318d0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0047e110
add esp, 0x14
xor edx, edx
cmp byte [ebp - 0x11c], 1
push 1
sete dl
cmp dword [0x64123c], 0
lea esi, [edx*4 + 0x15]
push esi
je 0x4172c7
mov eax, dword [0x41ec330]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [0x5f483c]
call fcn.004a5380
jmp 0x4172e0
mov edx, dword [0x41ec330]
mov ecx, dword [0x5f483c]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004a4f60
cmp dword [0x5eaaa0], 0
mov dword [0x539bb8], eax
je 0x417310
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x417300
push 0x31545844
jmp 0x417305
push 0x34545844
push eax
call fcn.004a4b60
mov eax, dword [0x539bb8]
mov ecx, dword [0x5f483c]
mov edx, dword [ecx + eax*4 + 0x11414]
fild dword [ecx + eax*4 + 0x11414]
test edx, edx
jns 0x41732e
fadd dword [0x4e4558]
fstp dword [0x1a82010]
mov eax, dword [ecx + eax*4 + 0x11814]
mov dword [ebp - 0x128], eax
fild dword [ebp - 0x128]
test eax, eax
jns 0x417351
fadd dword [0x4e4558]
fstp dword [0x41ec364]
cmp dword [0x6a30ac], 0
jne 0x417538
cmp dword [0x5f3384], 0
jne 0x417538
push 0x525258
lea ecx, [ebp - 0x104]
push str._sDataEmotion.cd7
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x104]
push 0x4e4714
push edx
call fcn.004cdd4a
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x417538
xor eax, eax
push ebx
push 0x20
push 1
push 0x1a38350
mov dword [0x1a38350], eax
mov dword [0x1a38354], eax
mov dword [0x1a38358], eax
mov dword [0x1a3835c], eax
mov dword [0x1a38360], eax
mov dword [0x1a38364], eax
mov dword [0x1a38368], eax
mov dword [0x1a3836c], eax
call fcn.004cdfab
push 0x526a00
push str.Emotion._s
push 0x1a38350
call fcn.004cce8a
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0x1c
push 0xa004
push 0
call edi
mov dword [0x6a30ac], eax
test eax, eax
je 0x41752c
push ebx
push 1
push 0xa004
push eax
call fcn.004cdfab
mov eax, dword [0x6a30ac]
mov esi, dword [eax]
imul esi, esi, 0x8c
add esp, 0x10
push esi
push 0
call edi
mov dword [0x5f3384], eax
test eax, eax
je 0x41752c
push ebx
push 1
push esi
push eax
call fcn.004cdfab
mov eax, dword [0x41ec330]
add esp, 0x10
cmp eax, 1
jne 0x4174c2
mov edx, dword [0x6a30ac]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x41752c
fld qword [0x4e4620]
xor eax, eax
mov edx, dword [0x5f3384]
fld dword [eax + edx + 0x20]
inc ecx
fmul st(1)
add eax, 0x8c
fstp dword [eax + edx - 0x6c]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x68]
fmul st(1)
fstp dword [eax + edx - 0x68]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x64]
fmul st(1)
fstp dword [eax + edx - 0x64]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x60]
fmul st(1)
fstp dword [eax + edx - 0x60]
mov edx, dword [0x6a30ac]
cmp ecx, dword [edx]
jl 0x417470
jmp 0x41752a
cmp eax, 2
jne 0x41752c
mov eax, dword [0x6a30ac]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x41752c
fld qword [0x4e46c8]
xor eax, eax
mov edx, dword [0x5f3384]
fld dword [eax + edx + 0x20]
inc ecx
fmul st(1)
add eax, 0x8c
fstp dword [eax + edx - 0x6c]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x68]
fmul st(1)
fstp dword [eax + edx - 0x68]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x64]
fmul st(1)
fstp dword [eax + edx - 0x64]
mov edx, dword [0x5f3384]
fld dword [eax + edx - 0x60]
fmul st(1)
fstp dword [eax + edx - 0x60]
mov edx, dword [0x6a30ac]
cmp ecx, dword [edx]
jl 0x4174da
fstp st(0)
push ebx
call fcn.004cda49
add esp, 4
or edi, 0xffffffff
pop ebx
cmp dword [0x53b13c], edi
jne 0x4175e2
lea eax, [ebp - 0x104]
push str.Texturecardbox.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x104]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0047e110
xor ecx, ecx
add esp, 0x14
cmp byte [ebp - 0x11c], 1
push 0
sete cl
cmp dword [0x64123c], 0
lea esi, [ecx*4 + 0x15]
mov ecx, dword [0x5f483c]
push esi
je 0x4175ab
lea edx, [ebp - 0x104]
push edx
call fcn.004a51d0
jmp 0x4175b7
lea eax, [ebp - 0x104]
push eax
call fcn.004a4cf0
cmp dword [0x5eaaa0], 0
mov dword [0x53b13c], eax
je 0x4175e2
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x4175d7
push 0x31545844
jmp 0x4175dc
push 0x34545844
push eax
call fcn.004a4b60
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ccd49
mov esp, ebp
pop ebp
ret