Function at 0x10006890
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 edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
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
lea edx, [ebp - 0x38]
push 0
mov ecx, str.Giveweap
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.10059a60
add esp, 4
test al, al
je 0x10006927
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 0x100069a7
mov eax, dword [0x1009b3a0]
cmp byte [eax + 0x2d58], 0
jne 0x10006994
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 0x10006a25
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 0x100069ff
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 0x100069e0
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 0x100069ff
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 0x10006a32
push str.EquipmentName_____:
call fcn.10058cd0
add esp, 4
mov esi, dword [edi + 0x124]
test esi, esi
je 0x10006c02
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 0x10006a86
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006a67
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 0x10006a86
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 0x10006adf
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 0x10006b17
inc ecx
test eax, eax
je 0x10006b05
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10006b0a
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 0x1009bcb0
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 0x10006c02
mov edi, 0x1009bcb0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10006b94
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 0x1009bcb0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009bcb0
add esp, 0xc
mov dword [edi + 0x124], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006bd4
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009bcb0
mov dword [edi + 0x128], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006bf0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x12c], eax
mov esi, dword [edi + 0x168]
test esi, esi
je 0x10007102
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 0x10006c56
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006c37
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 0x10006c56
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 0x10006caf
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 0x10006ce7
inc ecx
test eax, eax
je 0x10006cd5
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10006cda
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 0
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 0xff
push 0x1009bb38
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 0x10006dd3
mov edi, 0x1009bb38
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10006d67
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 0x1009bb38
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009bb38
add esp, 0xc
mov dword [edi + 0x168], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006da7
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009bb38
mov dword [edi + 0x16c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006dc1
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 0x10006e1f
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006e00
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 0x10006e1f
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 0x10006e78
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 0x10006eb0
inc ecx
test eax, eax
je 0x10006e9e
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10006ea3
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 0
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 0xff
push 0x1009c058
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 0x10006fa2
mov edi, 0x1009c058
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10006f34
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 0x1009c058
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009c058
add esp, 0xc
mov dword [edi + 0x130], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f74
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009c058
mov dword [edi + 0x134], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f90
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x138], eax
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 0x10006fd7
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 0x1000700f
inc ecx
test eax, eax
je 0x10006ffd
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10007002
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 0
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, str.Event_Desc
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 0x40
push 0x1009be18
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_Event_Desc
call fcn.10059a60
add esp, 0x1c
test al, al
je 0x10007102
mov edi, 0x1009be18
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10007090
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 0x1009be18
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebp - 0x3c]
mov ecx, 0x1009be18
add esp, 0xc
mov dword [edi + 0x934], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100070d0
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, 0x1009be18
mov dword [edi + 0x938], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100070f0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x93c], 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 0x100074a6
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 0x100074a6
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 0x1000718a
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 0x100071c2
inc ecx
test eax, eax
je 0x100071b0
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x100071b5
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 0x10007261
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 0x1000726e
push str.No_RandomBaseNames_found
call fcn.10058cd0
add esp, 4
cmp dword [edi + 0x974], 0
je 0x100072f0
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 0x100072fd
push str.No_DamageReductionNames_found
call fcn.10058cd0
add esp, 4
cmp dword [edi + 0x98c], 0
je 0x1000737f
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 0x1000738c
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 0x1000740c
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 0x10007444
inc ecx
test eax, eax
je 0x10007432
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10007437
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 0x100076ef
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 0x100076ef
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 0x10007e49
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 0x10007e49
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 0x1000776a
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 0x100077aa
inc ecx
test esi, esi
je 0x10007794
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10007799
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 0x10007e8f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10007e85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007ec7
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 0x10007ed7
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10007ecd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10007ecd
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