Function at 0x10005380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b558
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10096040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov edi, dword [ecx + 0x318]
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x10006823
push 0
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], edi
mov ecx, str.Give
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.10059a60
add esp, 4
test al, al
je 0x10005423
lea eax, [ebp - 0x30]
push eax
call fcn.1000eaf0
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
cmova eax, dword [ebx + 8]
push eax
push str.InternalName_:__s
call fcn.10058cd0
push edi
push str.ItemAddr__________:__0x_p
call fcn.10058cd0
movss xmm1, dword [0x10092420]
xorps xmm0, xmm0
call fcn.10020de0
push 0
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov ecx, str.Copy_to_clipboard
mov dword [ebp - 0x34], 0
call fcn.10059a60
add esp, 0x14
test al, al
je 0x100054a3
mov eax, dword [0x1009b3a0]
cmp byte [eax + 0x2d58], 0
jne 0x10005490
mov ecx, 4
call fcn.10026520
push edi
push 0x10081824
call fcn.10026310
add esp, 8
call fcn.100265e0
mov esi, dword [edi + 0x1a0]
test esi, esi
je 0x10005519
sub esp, 0xc
mov edx, esp
mov dword [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
cmp word [esi], 0
je 0x100054f3
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100054d4
sub ecx, dword [ebp - 0x30]
sar ecx, 1
lea eax, [ecx + 1]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
test eax, eax
je 0x100054f3
mov dword [edx], esi
lea ecx, [ebp - 0x2c]
call fcn.10002b30
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push eax
push str.EquipmentName_____:___s
call fcn.10058cd0
add esp, 8
jmp 0x10005526
push str.EquipmentName_____:
call fcn.10058cd0
add esp, 4
mov esi, dword [edi + 0x124]
test esi, esi
je 0x10005702
sub esp, 0xc
mov edx, esp
mov dword [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
cmp word [esi], 0
je 0x1000557f
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005560
sub ecx, dword [ebp - 0x30]
sar ecx, 1
lea eax, [ecx + 1]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
test eax, eax
je 0x1000557f
mov dword [edx], esi
lea ecx, [ebp - 0x2c]
call fcn.10002b30
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push eax
push str.UserEquipmentName_:___s
call fcn.10058cd0
mov ecx, dword [0x1009b3a0]
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x30], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100055d8
movss xmm1, dword [ecx + 0x22c]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x10005610
inc ecx
test eax, eax
je 0x100055fe
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10005603
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10029f40
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x30]
push 0
push 0
push 0x20
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, 0x10081870
inc dword [esi]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
and dword [eax + 0x1a84], 0xfffffffe
lea eax, [ebp - 0x38]
push eax
push 0x20
push 0x1009bc40
call fcn.10062f80
call fcn.1001f9c0
movss xmm1, dword [0x10092420]
xorps xmm0, xmm0
call fcn.10020de0
push 0
mov edx, 0x100961a8
mov ecx, str.Change_Name
call fcn.10059a60
add esp, 0x1c
test al, al
je 0x10005702
mov edi, 0x1009bc40
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10005690
sub edi, ecx
inc edi
push 0x40
push 0x3000
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push 0x1009bc40
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009bc40
add esp, 0xc
mov dword [edi + 0x124], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100056d0
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009bc40
mov dword [edi + 0x128], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100056f0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x12c], eax
mov esi, dword [edi + 0x168]
test esi, esi
je 0x10005aa2
sub esp, 0xc
mov edx, esp
mov dword [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
cmp word [esi], 0
je 0x10005756
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005737
sub ecx, dword [ebp - 0x34]
sar ecx, 1
lea eax, [ecx + 1]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
test eax, eax
je 0x10005756
mov dword [edx], esi
lea ecx, [ebp - 0x2c]
call fcn.10002b30
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push eax
push str.UserForgerName____:___s
call fcn.10058cd0
mov ecx, dword [0x1009b3a0]
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x34], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100057af
movss xmm1, dword [ecx + 0x22c]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x100057e7
inc ecx
test eax, eax
je 0x100057d5
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x100057da
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10029f40
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0x20
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, str.Forger
inc dword [esi]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
and dword [eax + 0x1a84], 0xfffffffe
lea eax, [ebp - 0x38]
push eax
push 0x20
push 0x1009bdf4
call fcn.10062f80
call fcn.1001f9c0
movss xmm1, dword [0x10092420]
xorps xmm0, xmm0
call fcn.10020de0
push 0
mov edx, 0x100961a8
mov ecx, str.Change_Forger_Name
call fcn.10059a60
add esp, 0x1c
test al, al
je 0x100058d2
mov edi, 0x1009bdf4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10005864
sub edi, ecx
inc edi
push 0x40
push 0x3000
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push 0x1009bdf4
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009bdf4
add esp, 0xc
mov dword [edi + 0x168], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100058a4
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009bdf4
mov dword [edi + 0x16c], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100058c0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x170], eax
mov esi, dword [edi + 0x130]
sub esp, 0xc
mov edx, esp
mov dword [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
cmp word [esi], 0
je 0x1000591f
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005900
sub ecx, dword [ebp - 0x34]
sar ecx, 1
lea eax, [ecx + 1]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
test eax, eax
je 0x1000591f
mov dword [edx], esi
lea ecx, [ebp - 0x2c]
call fcn.10002b30
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push eax
push str.UserDescrName____:___s
call fcn.10058cd0
mov ecx, dword [0x1009b3a0]
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x34], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005978
movss xmm1, dword [ecx + 0x22c]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x100059b0
inc ecx
test eax, eax
je 0x1000599e
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x100059a3
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10029f40
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0x20
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, str.Description
inc dword [esi]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
and dword [eax + 0x1a84], 0xfffffffe
lea eax, [ebp - 0x38]
push eax
push 0x20
push 0x1009bc90
call fcn.10062f80
call fcn.1001f9c0
movss xmm1, dword [0x10092420]
xorps xmm0, xmm0
call fcn.10020de0
push 0
mov edx, 0x100961a8
mov ecx, str.Change_Description
call fcn.10059a60
add esp, 0x1c
test al, al
je 0x10005aa2
mov edi, 0x1009bc90
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10005a30
sub edi, ecx
inc edi
push 0x40
push 0x3000
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push 0x1009bc90
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009bc90
add esp, 0xc
mov dword [edi + 0x130], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005a70
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009bc90
mov dword [edi + 0x134], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005a90
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x138], eax
mov ecx, dword [0x1009b3a0]
mov eax, dword [ecx + 0x19b0]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x19b0]
cmp byte [ecx + 0x7f], 0
jne 0x10005e3a
push 0
push str.___Main___
push ecx
push str.___Main___
call fcn.10016740
xor edx, edx
mov ecx, eax
call fcn.1006bee0
add esp, 8
test al, al
je 0x10005e3a
push str.___Name___
call fcn.10058cd0
mov ecx, dword [0x1009b3a0]
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x34], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005b2a
movss xmm1, dword [ecx + 0x22c]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x10005b62
inc ecx
test eax, eax
je 0x10005b50
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10005b55
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10029f40
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x30]
inc dword [esi]
and dword [eax + 0x1a84], 0xfffffffe
cmp dword [edi + 0x968], 0
je 0x10005bfd
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 4
movups xmmword [ecx], xmm0
push str.Base
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000fd30
movzx eax, byte [edi + 0xd0]
lea ecx, [edi + 0xd0]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
lea esi, [eax + eax*2]
mov eax, dword [edi + 0x968]
movq xmm0, qword [eax + esi*8 + 0xc]
mov eax, dword [eax + esi*8 + 0x14]
movq qword [edx], xmm0
movq xmm0, qword [edi + 0x968]
mov dword [edx + 8], eax
mov edx, esp
mov eax, dword [edi + 0x970]
movq qword [edx], xmm0
mov dword [edx + 8], eax
call fcn.10005130
add esp, 0x30
jmp 0x10005c0a
push str.No_RandomBaseNames_found
call fcn.10058cd0
add esp, 4
cmp dword [edi + 0x974], 0
je 0x10005c88
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xf
movups xmmword [ecx], xmm0
push str.DamageReduction
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000fd30
movzx eax, byte [edi + 0xd2]
lea ecx, [edi + 0xd2]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
lea esi, [eax + eax*2]
mov eax, dword [edi + 0x974]
movq xmm0, qword [eax + esi*8 + 0xc]
mov eax, dword [eax + esi*8 + 0x14]
movq qword [edx], xmm0
movq xmm0, qword [edi + 0x974]
mov dword [edx + 8], eax
mov edx, esp
mov eax, dword [edi + 0x97c]
movq qword [edx], xmm0
mov dword [edx + 8], eax
call fcn.10005130
add esp, 0x30
jmp 0x10005c95
push str.No_DamageReductionNames_found
call fcn.10058cd0
add esp, 4
cmp dword [edi + 0x98c], 0
je 0x10005d13
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 7
movups xmmword [ecx], xmm0
push str.Quality
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000fd30
movzx eax, byte [edi + 0xd1]
lea ecx, [edi + 0xd1]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
lea esi, [eax + eax*2]
mov eax, dword [edi + 0x98c]
movq xmm0, qword [eax + esi*8 + 0xc]
mov eax, dword [eax + esi*8 + 0x14]
movq qword [edx], xmm0
movq xmm0, qword [edi + 0x98c]
mov dword [edx + 8], eax
mov edx, esp
mov eax, dword [edi + 0x994]
movq qword [edx], xmm0
mov dword [edx + 8], eax
call fcn.10005130
add esp, 0x30
jmp 0x10005d20
push str.No_QualityDescriptorRealNames_found
call fcn.10058cd0
add esp, 4
push 0x20000
push str._.3f
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x3f800000
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0x42c80000
push eax
lea eax, [edi + 0x9c]
mov edx, 8
push eax
mov ecx, str.WeaponDrawScaleMultiplier
call fcn.100608d0
add esp, 0x14
call fcn.1001f9c0
push str.___Color___
call fcn.10058cd0
mov ecx, dword [0x1009b3a0]
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x34], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005da0
movss xmm1, dword [ecx + 0x22c]
lea esi, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x10005dd8
inc ecx
test eax, eax
je 0x10005dc6
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10005dcb
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10029f40
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x34]
push 0
push 0
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
lea edx, [edi + 0xf4]
mov eax, dword [ebp - 0x30]
mov ecx, str.Primary
inc dword [esi]
and dword [eax + 0x1a84], 0xfffffffe
call fcn.10067b80
movss xmm1, dword [0x10092420]
xorps xmm0, xmm0
call fcn.10020de0
push 0
push 0
lea edx, [edi + 0x104]
mov ecx, str.Secondary
call fcn.10067b80
add esp, 0x10
call fcn.1001f9c0
call fcn.1006cd50
mov ecx, dword [0x1009b3a0]
mov eax, dword [ecx + 0x19b0]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x19b0]
cmp byte [ecx + 0x7f], 0
jne 0x10006083
push 0
push str.___Stats___
push ecx
push str.___Stats___
call fcn.10016740
xor edx, edx
mov ecx, eax
call fcn.1006bee0
add esp, 8
test al, al
je 0x10006083
push 0
push 0x10081ec4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x64
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
lea eax, [edi + 0x40]
mov edx, 4
push eax
mov ecx, str.HHealth
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.HSpeed
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x44]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.HDamage
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.HCast
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x4c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, 0x10081a08
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x50]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x54]
push eax
mov ecx, 0x10081a14
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.THealth
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x58]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.TSpeed
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x5c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.TDamage
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.TRange
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x64]
push eax
call fcn.100608d0
add esp, 0x14
call fcn.1006cd50
mov ecx, dword [0x1009b3a0]
mov eax, dword [ecx + 0x19b0]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x19b0]
cmp byte [ecx + 0x7f], 0
jne 0x100067dd
push 0
push str.___Other___
push ecx
push str.___Other___
call fcn.10016740
xor edx, edx
mov ecx, eax
call fcn.1006bee0
add esp, 8
test al, al
je 0x100067dd
mov ecx, dword [0x1009b3a0]
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x19b0]
mov ecx, eax
mov dword [ebp - 0x34], ecx
movss xmm1, dword [eax + 0x14]
mulss xmm1, dword [0x10092220]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100060fe
movss xmm1, dword [ecx + 0x22c]
lea eax, [ecx + 0x184]
movss dword [ecx + 0x170], xmm1
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x3c], eax
cmp ecx, esi
jne 0x1000613e
inc ecx
test esi, esi
je 0x10006128
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1000612d
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.10029f40
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
lea esi, [edi + 0x120]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x34]
push 0
push 0x10081ec4
mov dword [ebp - 0x34], 0x64
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
mov edx, 4
mov eax, dword [ebp - 0x3c]
mov ecx, 0x10081a5c
inc dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 1
and dword [eax + 0x1a84], 0xfffffffe
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.DamageReductions1
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x6c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.DamageReductions2
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x74]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.DamageReductions3
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x7c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.DamageReductions4
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x84]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
mov dword [ebp - 0x30], 1
push 0
push 0x10081ec4
lea eax, [ebp - 0x34]
mov edx, 4
push eax
lea eax, [ebp - 0x30]
mov ecx, str.DamageBonus
push eax
lea eax, [edi + 0x88]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.NumberOfProjectilesBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x8c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.SpeedOfProjectilesBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x90]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponAdditionalDamageAmount
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x98]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x30], 0x3f800000
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x42c80000
mov edx, 8
mov ecx, str.MaxRandomElementalDamageMultiplier
push 0x20000
push str._.3f
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xa0]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x30], 0x3f800000
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x42c80000
mov edx, 8
mov ecx, str.WeaponSwingSpeedMultiplier
push 0x20000
push str._.3f
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xa4]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponReloadSpeedBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xac]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponKnockbackBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponAltDamageBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xb4]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponBlockingBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xb8]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponClipAmmoBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xbc]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xc0]
push eax
mov edx, 4
mov ecx, str.AdditionalAllowedUpgradeResistancePoints
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.RequirementLevelOverride
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xc4]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponChargeSpeedBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.WeaponShotsPerSecondBonus
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0xcc]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.MaximumSellWorth
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x114]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.MinimumSellWorth
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x118]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x11c]
mov edx, 4
push eax
mov ecx, str.ShopMinimumSellWorth
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.MaxEquipmentLevel
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.Level
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x184]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.StoredMana
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x188]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.UserID
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x18c]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x3f800000
lea eax, [ebp - 0x34]
mov edx, 8
mov ecx, str.MyRatingPercent
push 0x20000
push str._.3f
push 0
push eax
lea eax, [edi + 0x190]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x3f800000
lea eax, [ebp - 0x34]
push 0x20000
push str._.3f
push 0
push eax
lea eax, [edi + 0x194]
push eax
mov edx, 8
mov ecx, str.MyRating
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.EquipmentID1
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x198]
push eax
call fcn.100608d0
add esp, 0x14
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov edx, 4
mov ecx, str.EquipmentID2
push 0
push 0x10081ec4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x19c]
push eax
call fcn.100608d0
add esp, 0x14
call fcn.1001f9c0
call fcn.1006cd50
mov eax, dword [edi + 0xa8]
or eax, 0x80000
or eax, 0x100000
mov dword [edi + 0xa8], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10006823
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006819
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000685b
push ecx
push edx
call fcn.1007a329
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x1000686b
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006861
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006861
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007a329
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10079e87
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret