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

Disassembly:
sub esp, 0x4b8
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push esi
mov ecx, 0x109bed0
call fcn.004f4e20
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4da9a9
mov eax, dword [0x587970]
add eax, 0xe0
push str.CGameData::LoadConstItem_db_alloc
push eax
call fcn.004efdc0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.0051a8be
add esp, 0x4b8
ret
push ebp
push edi
lea ecx, [esp + 0xc4]
push str.EXEC_usp_Read_Items_R
push ecx
mov dword [esp + 0xa0], ebx
call fcn.0051a8cd
add esp, 8
lea edx, [esp + 0xc4]
push edx
mov ecx, esi
call fcn.004f8bf0
xor ecx, ecx
cmp cx, ax
jne 0x4dbad7
mov ecx, esi
call fcn.004f8c30
mov edx, 0x64
cmp dx, ax
je 0x4dbaa9
jmp 0x4daa00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x98]
push ecx
push 4
push 4
push 1
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa8]
push ecx
push 1
push 0x1e
push 2
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x16]
push ecx
push 0xfffffffffffffffa
push 1
push 3
mov ecx, esi
mov byte [esp + 0xd6], bl
mov byte [esp + 0xd7], bl
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x17]
push ecx
push 0xfffffffffffffffa
push 1
push 4
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 5
push 2
push 5
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x25]
push ecx
push 0xfffffffffffffffa
push 1
push 6
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x32]
push ecx
push 0xfffffffffffffffa
push 1
push 7
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x33]
push ecx
push 0xfffffffffffffffa
push 1
push 8
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3b]
push ecx
push 0xfffffffffffffffa
push 1
push 9
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x36]
push ecx
push 0xfffffffffffffffa
push 1
push 0xa
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3a]
push ecx
push 0xfffffffffffffffa
push 1
push 0xb
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2b]
push ecx
push 0xfffffffffffffffa
push 1
push 0xc
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0xfffffffffffffffa
push 1
push 0xd
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push ecx
push 5
push 2
push 0xe
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
push ecx
push 5
push 2
push 0xf
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x94]
push ecx
push 5
push 2
push 0x10
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
push 5
push 2
push 0x11
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 5
push 2
push 0x12
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
push 5
push 2
push 0x13
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
push ecx
push 5
push 2
push 0x14
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x29]
push ecx
push 0xfffffffffffffffa
push 1
push 0x15
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2a]
push ecx
push 0xfffffffffffffffa
push 1
push 0x16
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x9c]
push ecx
push 5
push 2
push 0x17
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0xfffffffffffffffa
push 1
push 0x18
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x26]
push ecx
push 0xfffffffffffffffa
push 1
push 0x19
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x35]
push ecx
push 0xfffffffffffffffa
push 1
push 0x1a
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0xfffffffffffffffa
push 1
push 0x1b
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 5
push 2
push 0x1c
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 5
push 2
push 0x1d
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
push 5
push 2
push 0x1e
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
push 5
push 2
push 0x1f
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
push 5
push 2
push 0x20
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x88]
push ecx
push 5
push 2
push 0x21
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
push 5
push 2
push 0x22
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
push ecx
push 5
push 2
push 0x23
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
push ecx
push 5
push 2
push 0x24
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x84]
push ecx
push 5
push 2
push 0x25
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x78]
push ecx
push 5
push 2
push 0x26
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 5
push 2
push 0x27
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
push 5
push 2
push 0x28
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 5
push 2
push 0x29
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x37]
push ecx
push 0xfffffffffffffffa
push 1
push 0x2a
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x39]
push ecx
push 0xfffffffffffffffa
push 1
push 0x2b
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa4]
push ecx
push 4
push 4
push 0x2c
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa0]
push ecx
push 4
push 4
push 0x2d
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 5
push 2
push 0x2e
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
push 5
push 2
push 0x2f
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0xfffffffffffffffa
push 1
push 0x30
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x27]
push ecx
push 0xfffffffffffffffa
push 1
push 0x31
mov ecx, esi
call fcn.004f81e0
xor edx, edx
cmp dx, ax
jne 0x4dbad7
cmp byte [esp + 0x22], 9
jb 0x4db0bc
mov byte [esp + 0x22], bl
cmp byte [esp + 0x12], 0x1e
je 0x4db0cf
cmp byte [esp + 0x21], 6
jbe 0x4db0cf
mov byte [esp + 0x21], 6
cmp byte [esp + 0x23], bl
jne 0x4db0da
mov byte [esp + 0x23], 1
cmp word [esp + 0x70], 6
jbe 0x4db0e6
mov dword [esp + 0x70], ebx
mov al, byte [esp + 0x20]
cmp al, 9
jbe 0x4db0f4
mov byte [esp + 0x20], bl
jmp 0x4db12e
cmp al, bl
je 0x4db12e
cmp word [esp + 0x68], bx
jne 0x4db12e
mov ecx, dword [esp + 0x94]
mov edx, dword [0x587970]
push ebx
movzx eax, al
push eax
push ecx
add edx, 0xe0
push str.RandomOption_Error_:_ItemID_d__byServer_d__Wis_d
push edx
call fcn.004efdc0
add esp, 0x14
mov dword [esp + 0x68], 1
movzx eax, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp + 0x94]
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
mov dword [eax + 0x589674], edx
movzx eax, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
lea edx, [esp + 0xa4]
add eax, 0x589678
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
cmp cl, bl
jne 0x4db171
mov al, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
movzx edx, al
shl edx, 8
add edx, ecx
imul edx, edx, 0xa8
mov byte [edx + 0x589698], al
mov al, byte [esp + 0x13]
movzx edx, byte [esp + 0x12]
shl edx, 8
movzx ecx, al
add edx, ecx
imul edx, edx, 0xa8
mov byte [edx + 0x589699], al
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
movzx ecx, byte [esp + 0x21]
mov byte [edx + 0x58969a], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, byte [esp + 0x2e]
imul edx, edx, 0xa8
mov byte [edx + 0x58969b], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, byte [esp + 0x2f]
imul edx, edx, 0xa8
mov byte [edx + 0x58969c], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x37]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x58969d], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x32]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x58969e], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x36]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x58969f], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x27]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896a0], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x34]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896a4], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x98]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896b6], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
movzx ecx, byte [esp + 0x24]
mov byte [edx + 0x5896b8], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
movzx ecx, byte [esp + 0x22]
mov byte [edx + 0x5896b9], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
movzx ecx, byte [esp + 0x31]
mov byte [edx + 0x5896ba], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, byte [esp + 0x30]
imul edx, edx, 0xa8
mov byte [edx + 0x5896bb], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, byte [esp + 0x33]
imul edx, edx, 0xa8
mov byte [edx + 0x5896bc], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x35]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896bd], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x20]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896be], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x23]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896bf], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x48]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896a2], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x60]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896aa], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x7c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ac], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x90]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ae], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, word [esp + 0x54]
imul edx, edx, 0xa8
mov word [edx + 0x5896b0], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x68]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896b2], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x8c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896b4], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x25]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896a5], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x26]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov byte [edx + 0x5896a6], cl
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x5c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896a8], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x28]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896c0], cx
movzx edx, word [esp + 0x28]
movzx ecx, byte [esp + 0x12]
mov dword [esp + 0x1c], edx
movzx edx, byte [esp + 0x13]
fild dword [esp + 0x1c]
fld qword [0x573f80]
shl ecx, 8
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
fmul st(1), st(0)
fxch st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
add ecx, edx
imul ecx, ecx, 0xa8
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx eax, word [esp + 0x18]
fldcw word [esp + 0x1c]
mov word [ecx + 0x5896c2], ax
movzx eax, word [esp + 0x28]
movzx edx, byte [esp + 0x12]
fnstcw word [esp + 0x1c]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x1c]
fild dword [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmul qword [0x5740a8]
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx ecx, word [esp + 0x18]
fldcw word [esp + 0x1c]
movzx eax, byte [esp + 0x13]
fnstcw word [esp + 0x1c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896c4], cx
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
movzx eax, word [esp + 0x38]
shl ecx, 8
add ecx, edx
imul ecx, ecx, 0xa8
mov word [ecx + 0x5896c6], ax
movzx ecx, word [esp + 0x38]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x18], ecx
movzx ecx, byte [esp + 0x13]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x12]
fmul st(1)
fldcw word [esp + 0x18]
shl eax, 8
add eax, ecx
xor ecx, ecx
imul eax, eax, 0xa8
fistp dword [esp + 0x18]
fldcw word [esp + 0x1c]
movzx edx, word [esp + 0x18]
mov word [eax + 0x5896c8], dx
movzx edx, byte [esp + 0x12]
fnstcw word [esp + 0x1c]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ca], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x3c]
shl edx, 8
add edx, eax
movzx eax, word [esp + 0x1c]
imul edx, edx, 0xa8
mov word [edx + 0x5896cc], cx
movzx edx, word [esp + 0x3c]
movzx ecx, byte [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 0x13]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
shl ecx, 8
fmul st(1)
add ecx, edx
fldcw word [esp + 0x18]
imul ecx, ecx, 0xa8
fistp dword [esp + 0x18]
movzx eax, word [esp + 0x18]
fldcw word [esp + 0x1c]
mov word [ecx + 0x5896ce], ax
movzx eax, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
fnstcw word [esp + 0x1c]
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
xor edx, edx
mov word [eax + 0x5896d0], dx
movzx eax, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
movzx edx, word [esp + 0x44]
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
mov word [eax + 0x5896d2], dx
movzx eax, word [esp + 0x44]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul st(1)
movzx eax, word [esp + 0x1c]
movzx edx, byte [esp + 0x12]
shl edx, 8
or eax, 0xc00
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x13]
fldcw word [esp + 0x18]
add edx, eax
xor eax, eax
imul edx, edx, 0xa8
fistp dword [esp + 0x18]
fldcw word [esp + 0x1c]
movzx ecx, word [esp + 0x18]
mov word [edx + 0x5896d4], cx
movzx ecx, byte [esp + 0x12]
fnstcw word [esp + 0x1c]
movzx edx, byte [esp + 0x13]
shl ecx, 8
add ecx, edx
imul ecx, ecx, 0xa8
mov word [ecx + 0x5896d6], ax
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
movzx eax, word [esp + 0x40]
shl ecx, 8
add ecx, edx
imul ecx, ecx, 0xa8
mov word [ecx + 0x5896d8], ax
movzx ecx, word [esp + 0x40]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x18], ecx
movzx ecx, byte [esp + 0x13]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x12]
fmulp st(1)
fldcw word [esp + 0x18]
shl eax, 8
add eax, ecx
xor ecx, ecx
imul eax, eax, 0xa8
fistp dword [esp + 0x18]
fldcw word [esp + 0x1c]
movzx edx, word [esp + 0x18]
mov word [eax + 0x5896da], dx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896dc], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x84]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896de], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x64]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896e0], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x78]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896e2], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x6c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896e4], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
movzx ecx, word [esp + 0x80]
mov word [edx + 0x5896e6], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl edx, 8
add edx, eax
movzx ecx, word [esp + 0x74]
imul edx, edx, 0xa8
mov word [edx + 0x5896e8], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x88]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ea], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x4c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ec], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x50]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896ee], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x58]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896f0], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
movzx ecx, word [esp + 0x70]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov word [edx + 0x5896f2], cx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0xa0]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov dword [edx + 0x5896f4], ecx
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x9c]
shl edx, 8
add edx, eax
imul edx, edx, 0xa8
mov dword [edx + 0x5896f8], ecx
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
shl ecx, 8
add ecx, edx
imul ecx, ecx, 0xa8
add ecx, 0x589674
xor ebp, ebp
lea esp, [esp]
mov edx, dword [ebp*4 + 0x581db8]
mov edi, dword [edx]
xor eax, eax
cmp edi, ebx
jle 0x4dba28
movzx ebx, byte [ecx + 0x24]
add edx, 4
cmp ebx, dword [edx]
je 0x4dbacf
inc eax
add edx, 4
cmp eax, edi
jl 0x4dba16
xor ebx, ebx
inc ebp
cmp ebp, 0x1b
jl 0x4dba00
xor ebp, ebp
mov dword [ecx + 0xa0], ebp
movzx ebp, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
shl ebp, 8
add ebp, eax
imul ebp, ebp, 0xa8
add ebp, 0x589674
movzx edi, byte [ebp + 0x24]
call fcn.004d5920
mov byte [ebp + 0xa4], al
movzx eax, byte [esp + 0x12]
movzx ecx, byte [esp + 0x13]
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
cmp dword [eax + 0x589714], 0x1a
lea eax, [eax + 0x587c68]
jne 0x4dba94
cmp byte [eax + 0x1a3e], 0xc
jb 0x4dba94
mov byte [eax + 0x1a3e], 0xb
mov ecx, esi
call fcn.004f8c30
mov edx, 0x64
cmp dx, ax
jne 0x4daa00
push esi
mov ecx, 0x109bed0
call fcn.004f4ee0
mov al, 1
mov ecx, dword [esp + 0x4c4]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x4b8
ret
inc ebp
xor ebx, ebx
jmp 0x4dba30
mov ecx, dword [esi + 0xc]
mov edx, dword [0x587970]
lea eax, [esp + 0xc4]
push eax
push ecx
add edx, 0xe0
push str.CGameData::LoadConstItem:_err_d__query_s
push edx
call fcn.004efdc0
add esp, 0x10
mov ecx, esi
call fcn.004f8340
push eax
mov eax, dword [0x587970]
add eax, 0xe0
push str.ErrorMsg_s
push eax
call fcn.004efdc0
add esp, 0xc
push esi
mov ecx, 0x109bed0
call fcn.004f4ee0
xor al, al
jmp 0x4dbab6