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

Disassembly:
mov eax, 0x9664
call fcn.0054d230
push ebp
push 0
push str.Avatar.xfs
lea eax, [esp + 0x30]
push 0x879c58
push eax
call fcn.00446070
mov ebp, dword [esp + 0x967c]
mov eax, dword [ebp + 0xf7a8]
lea ecx, [ebp + 0xf768]
add esp, 0x10
lea edx, [ecx + 0x44]
push edx
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [ecx + 0x52], 1
call fcn.004089e0
test al, al
jne 0x41f06e
mov eax, 7
pop ebp
add esp, 0x9664
ret 4
push esi
push 0
push str.graphics.xfs
lea eax, [esp + 0x34]
push 0x879c58
push eax
call fcn.00446070
mov edx, dword [ebp + 0xf818]
lea esi, [ebp + 0xf7d8]
add esp, 0x10
lea ecx, [esi + 0x44]
push ecx
push esi
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esi + 0x52], 1
call fcn.004089e0
test al, al
jne 0x41f0be
pop esi
mov eax, 2
pop ebp
add esp, 0x9664
ret 4
push 0
push 1
push str.characterdata.dat
mov ecx, esi
call fcn.00401d90
mov esi, eax
test esi, esi
je 0x41f0ae
mov ecx, dword [esi + 8]
push ebx
mov ebx, dword [ecx + 0x78]
push edi
push ebx
call fcn.00541c84
add esp, 4
dec ebx
mov edi, eax
push ebx
push edi
mov ecx, esi
call fcn.004019b0
push 1
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004019b0
push 0x19f0
push ebx
push edi
lea eax, [esp + 0x440]
push eax
mov ecx, ebp
call fcn.0052d9c0
mov cl, 0x4d
xor eax, eax
lea esp, [esp]
add cl, byte [esp + eax + 0x434]
inc eax
cmp eax, 0x19f0
jb 0x41f120
cmp cl, byte [esp + 0x14]
je 0x41f147
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x9664
ret 4
push esi
lea ecx, [ebp + 0xf7d8]
call fcn.00401eb0
test edi, edi
je 0x41f160
push edi
call fcn.0054a13d
add esp, 4
lea edi, [esp + 0x438]
lea ebx, [ebp + 0x28fd0]
mov dword [esp + 0x1c], 0x14
mov eax, dword [ebx - 8]
mov ecx, dword [edi - 4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx]
mov ecx, dword [edi]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi + 8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x18]
mov ecx, dword [edi + 0xc]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x20]
mov ecx, dword [edi + 0x10]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x28]
mov ecx, dword [edi + 0x14]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x30]
mov ecx, dword [edi + 0x18]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebx + 0x38]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x40]
mov ecx, dword [edi + 0x20]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x48]
mov ecx, dword [edi + 0x24]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x50]
mov ecx, dword [edi + 0x28]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x58]
mov ecx, dword [edi + 0x2c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x60]
mov ecx, dword [edi + 0x30]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x68]
mov ecx, dword [edi + 0x34]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x70]
mov ecx, dword [edi + 0x38]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x78]
push 1
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x80]
mov ecx, dword [edi + 0x40]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x88]
mov ecx, dword [edi + 0x44]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x90]
mov ecx, dword [edi + 0x48]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x98]
mov ecx, dword [edi + 0x4c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xa0]
mov ecx, dword [edi + 0x50]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xa8]
mov ecx, dword [edi + 0x54]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xb0]
mov ecx, dword [edi + 0x58]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0x5c]
mov dword [esp + 0x10], ecx
push 1
mov eax, dword [ebx + 0xb8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xc0]
mov ecx, dword [edi + 0x60]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xc8]
mov ecx, dword [edi + 0x64]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xd0]
mov ecx, dword [edi + 0x68]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xd8]
mov ecx, dword [edi + 0x6c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xe0]
mov ecx, dword [edi + 0x70]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xe8]
mov ecx, dword [edi + 0x74]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0xf0]
mov ecx, dword [edi + 0x78]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0x7c]
mov dword [esp + 0x10], ecx
push 1
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0xf8]
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x100]
mov ecx, dword [edi + 0x80]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x108]
mov ecx, dword [edi + 0x84]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x110]
mov ecx, dword [edi + 0x88]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x118]
mov ecx, dword [edi + 0x8c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x120]
mov ecx, dword [edi + 0x90]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x128]
mov ecx, dword [edi + 0x94]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x130]
mov ecx, dword [edi + 0x98]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0x9c]
push 1
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
mov eax, dword [ebx + 0x138]
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x140]
mov ecx, dword [edi + 0xa0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x148]
mov ecx, dword [edi + 0xa4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x150]
mov ecx, dword [edi + 0xa8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x158]
mov ecx, dword [edi + 0xac]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x160]
mov ecx, dword [edi + 0xb0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x168]
mov ecx, dword [edi + 0xb4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x170]
mov ecx, dword [edi + 0xb8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0xbc]
mov eax, dword [ebx + 0x178]
push 1
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x180]
mov ecx, dword [edi + 0xc0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x188]
mov ecx, dword [edi + 0xc4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x190]
mov ecx, dword [edi + 0xc8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x198]
mov ecx, dword [edi + 0xcc]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1a0]
mov ecx, dword [edi + 0xd0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1a8]
mov ecx, dword [edi + 0xd4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1b0]
mov ecx, dword [edi + 0xd8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebx + 0x1b8]
push 1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ecx
push eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1c0]
mov ecx, dword [edi + 0xe0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1c8]
mov ecx, dword [edi + 0xe4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1d0]
mov ecx, dword [edi + 0xe8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [edi + 0xec]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [edi + 0xf0]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [edi + 0xf4]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1f0]
mov ecx, dword [edi + 0xf8]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [edi + 0xfc]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x200]
mov ecx, dword [edi + 0x100]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x208]
mov ecx, dword [edi + 0x104]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x210]
mov ecx, dword [edi + 0x108]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x218]
mov ecx, dword [edi + 0x10c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x220]
mov ecx, dword [edi + 0x110]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x228]
mov ecx, dword [edi + 0x114]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x230]
mov ecx, dword [edi + 0x118]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x238]
mov ecx, dword [edi + 0x11c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x240]
mov ecx, dword [edi + 0x120]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x248]
mov ecx, dword [edi + 0x124]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x250]
mov ecx, dword [edi + 0x128]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x258]
mov ecx, dword [edi + 0x12c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x260]
mov ecx, dword [edi + 0x130]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x268]
mov ecx, dword [edi + 0x134]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x270]
mov ecx, dword [edi + 0x138]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x278]
mov ecx, dword [edi + 0x13c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x280]
mov ecx, dword [edi + 0x140]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebx + 0x288]
mov ecx, dword [edi + 0x144]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [esp + 0x1c]
add edi, 0x14c
add ebx, 0x298
dec eax
mov dword [esp + 0x1c], eax
jne 0x41f175
push 0
push 1
push str.stage.dat
lea ecx, [ebp + 0xf7d8]
call fcn.00401d90
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x41fcd4
pop edi
pop ebx
pop esi
mov eax, 4
pop ebp
add esp, 0x9664
ret 4
mov ecx, dword [esi + 8]
mov ebx, dword [ecx + 0x78]
push ebx
mov dword [esp + 0x14], ebx
call fcn.00541c84
add esp, 4
mov edi, eax
push ebx
push edi
mov ecx, esi
call fcn.004019b0
mov ecx, dword [edi]
sub ecx, 0x3ae53
mov eax, 0x811159b
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xe
lea edx, [esp + 0x24]
mov dword [ebp + 0x2c3a4], ecx
mov eax, dword [0x5d9720]
push edx
push eax
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov ecx, dword [ebp + 0x2c3a4]
cmp ecx, dword [esp + 0x24]
je 0x41fd4a
pop edi
pop ebx
pop esi
mov eax, 3
pop ebp
add esp, 0x9664
ret 4
mov edx, dword [esp + 0x10]
push 0x3c80
add edx, 0xfffffffc
push edx
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x1e30]
push eax
mov ecx, ebp
call fcn.0052d9c0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [ebp + 0xf7d8]
call fcn.00401eb0
push edi
call fcn.0054a13d
lea edi, [esp + 0x1ea8]
add esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
add ebp, 0x2c428
jmp 0x41fda2
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add edx, 0xf4df8
push edx
push 0x87e094
call fcn.004454c0
lea edx, [ebp - 0x80]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41fdc0
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x41fdd0
movzx eax, word [edi + 0x80]
mov edx, dword [ebp + 0x84]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
movzx eax, word [edi + 0x82]
mov edx, dword [ebp + 0x8c]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0x94]
mov eax, dword [edi + 0x84]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0x9c]
mov eax, dword [edi + 0x88]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xa4]
mov eax, dword [edi + 0x8c]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xac]
mov eax, dword [edi + 0x90]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xb4]
mov eax, dword [edi + 0x94]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xbc]
mov eax, dword [edi + 0x98]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 0x9c]
mov edx, dword [ebp + 0xc4]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebp + 0xcc]
mov eax, dword [edi + 0xa0]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
add edi, 0xc4
lea ebx, [ebp + 0x114]
mov dword [esp + 0x10], 8
mov edx, dword [ebx - 0x40]
mov eax, dword [edi - 0x20]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebx]
mov eax, dword [edi]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebx + 0x40]
mov eax, dword [edi + 0x20]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebx + 0x80]
mov eax, dword [edi + 0x40]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebx + 0xc0]
mov eax, dword [edi + 0x60]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [ebx + 0x100]
mov eax, dword [edi + 0x80]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [esp + 0x10]
add edi, 4
add ebx, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x41ff58
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esi, 0x1e4
add ebp, 0x2d0
cmp eax, 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
jl 0x41fd9e
mov ebp, dword [esp + 0x9678]
push 0
push 1
add ebp, 0xf7d8
push str.itemdata.dat
mov ecx, ebp
call fcn.00401d90
mov esi, eax
test esi, esi
jne 0x420086
pop edi
pop ebx
pop esi
mov eax, 5
pop ebp
add esp, 0x9664
ret 4
mov eax, dword [esi + 8]
mov edi, dword [eax + 0x78]
push edi
call fcn.00541c84
add esp, 4
mov ebx, eax
push edi
push ebx
mov ecx, esi
call fcn.004019b0
push 0x7850
push edi
mov edi, dword [esp + 0x9680]
push ebx
lea ecx, [esp + 0x1e30]
push ecx
mov ecx, edi
call fcn.0052d9c0
test ebx, ebx
je 0x4200ca
push ebx
call fcn.0054a13d
add esp, 4
mov al, byte [esi + 0x1c]
test al, al
jne 0x420104
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4200e2
mov edx, dword [esi]
push edx
mov ecx, esi
call fcn.00401750
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x74]
test ecx, ecx
jne 0x4200f8
mov eax, dword [eax + 0x78]
add dword [ebp + 0x10], eax
mov byte [ebp + 0x50], 0
jmp 0x420107
mov eax, dword [eax + 0x7c]
add dword [ebp + 0x10], eax
mov byte [ebp + 0x50], 0
jmp 0x420107
dec dword [ebp + 0x54]
mov ecx, esi
call fcn.00402330
push esi
call fcn.0054a142
add esp, 4
mov ebp, 0xf4a10
lea ebx, [esp + 0x1e48]
add edi, 0x42bcc
mov dword [esp + 0x10], 0x64
lea eax, [ebp - 0x3e8]
push eax
push 0x87e094
call fcn.004454c0
lea edx, [edi - 0x24]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x420145
mov eax, dword [edi]
mov ecx, dword [ebx - 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 8]
mov ecx, dword [ebx]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 0x18]
mov cl, byte [ebx + 8]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x20], cl
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 0x20]
mov cl, byte [ebx + 9]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x20], cl
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [edi + 0x28]
mov cl, byte [ebx + 0xa]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x20], cl
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
movzx ecx, word [ebx + 0xc]
mov eax, dword [edi + 0x30]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ecx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
push ebp
push 0x87e094
call fcn.004454c0
lea edx, [edi + 0x34]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x420230
mov eax, dword [esp + 0x10]
add ebx, 0x134
inc ebp
add edi, 0x158
dec eax
mov dword [esp + 0x10], eax
jne 0x420131
mov edx, dword [0x5d9720]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov eax, dword [esp + 0x9678]
push 0x63
push eax
call fcn.00422d20
sub eax, dword [esp + 0x24]
pop edi
neg eax
pop ebx
sbb eax, eax
pop esi
and eax, 6
pop ebp
add esp, 0x9664
ret 4