Function at 0x1000f470
Capabilities:
Encode data using xor
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fdca
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x10087700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + 8]
push 0x1006455c
push eax
call fcn.10049454
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000f4d4
push 0x10
push 0x10064560
push str.ItemOptionSystem_Exc.bmd_file_not_found
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
push 0
push edi
call fcn.10049a68
push edi
call fcn.1004a0c7
push edi
mov esi, eax
call fcn.1004a4c1
push esi
call fcn.10043701
push edi
push esi
push 1
push eax
mov dword [ebp - 0x144], eax
call fcn.10049644
push edi
call fcn.1004936d
mov edi, dword [ebp - 0x144]
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x1000f533
nop word [eax + eax]
mov eax, ecx
and eax, 0x1f
mov al, byte [eax + 0x10087074]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x1000f520
lea ecx, [ebp - 0xf0]
call fcn.1003ddc0
push 0
push 0x74
push esi
push edi
lea eax, [ebp - 0x1e8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xf0]
call fcn.1003e970
cmp dword [ebp - 0x1e8], 0
je 0x1000f56c
push edi
jmp 0x10010add
mov edi, dword [ebp - 0xfc]
add edi, 0x14
mov ecx, edi
mov dword [ebp - 0x11c], edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.1000ee30
mov eax, dword [ebp - 0xfc]
add eax, 0x1c
mov dword [esi + 4], esi
mov dword [esi], esi
mov ecx, eax
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.1000ee80
mov eax, dword [ebp - 0xfc]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [eax + 0x20], 0
add eax, 0x24
mov ecx, eax
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.1000ee80
mov dword [esi + 4], esi
lea eax, [ebp - 0x120]
mov dword [esi], esi
lea ecx, [ebp - 0xf0]
mov dword [esi + 8], esi
mov esi, dword [ebp - 0xfc]
push str.ItemOptionSystem
push eax
mov dword [esi + 0x28], 0
call fcn.1003e340
push 0
push 0x100645a4
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x120]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
mov byte [esi + 0x10], al
lea ecx, [ebp - 0x120]
push str.Notices
lea eax, [ebp - 0x140]
push eax
call fcn.1003e340
push 0
push str.PrintRequirementNotice
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x140]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
push 0
mov byte [esi + 0xb1c], al
lea ecx, [ebp - 0x140]
push 0x100645cc
lea eax, [ebp - 0x104]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [esi + 0xb1d], al
lea ecx, [ebp - 0x140]
push str.Strings
lea eax, [ebp - 0x1ac]
push eax
call fcn.1003e340
push str.String
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x1000f7b2
nop word [eax + eax]
push 0x10064559
push 0x100645e4
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e2b0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000d1b0
mov eax, dword [esi + 0xb30]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
cmp eax, dword [esi + 0xb34]
je 0x1000f73b
mov ecx, eax
call fcn.100052b0
add dword [esi + 0xb30], 0x18
jmp 0x1000f747
push eax
lea ecx, [esi + 0xb2c]
call fcn.1000ec10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000f77f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push edx
push ecx
call fcn.10043123
add esp, 8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x1000f6d0
mov esi, dword [ebp - 0xfc]
push str.Requirements
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x140]
call fcn.1003e340
push 0x100645fc
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x1000f8dc
nop dword [eax]
nop word [eax + eax]
push 0x1006455a
push 0x10064600
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e2b0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000d1b0
mov eax, dword [esi + 0xb24]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
cmp eax, dword [esi + 0xb28]
je 0x1000f86b
mov ecx, eax
call fcn.100052b0
add dword [esi + 0xb24], 0x18
jmp 0x1000f877
push eax
lea ecx, [esi + 0xb20]
call fcn.1000ec10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000f8af
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f8a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push edx
push ecx
call fcn.10043123
add esp, 8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x1000f800
push str.Items
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x120]
call fcn.1003e340
push 0x10064610
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x1000fddc
nop dword [eax]
push 0
push 0x10064618
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov esi, eax
lea ecx, [ebp - 0xf4]
push 0x1006461c
lea eax, [ebp - 0x15c]
shl esi, 9
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
add eax, esi
lea ecx, [ebp - 0xf4]
push 0
movzx esi, ax
lea eax, [ebp - 0x160]
push 0x10064624
push eax
mov dword [ebp - 0x114], esi
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push ecx
mov dword [esp], 0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x164]
push 0x10064630
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
fstp dword [ebp - 0xf8]
cvttss2si eax, dword [ebp - 0xf8]
push ecx
mov dword [esp], 0
lea ecx, [ebp - 0xf4]
push 0x1006463c
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x158]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
fstp dword [ebp - 0xf8]
cvttss2si eax, dword [ebp - 0xf8]
push 0
push str.Ancient
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov word [ebp - 0x19c], ax
lea ecx, [ebp - 0xf4]
push str.Excellent
lea eax, [ebp - 0x170]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x19a], al
lea ecx, [ebp - 0xf4]
push 0x10064664
lea eax, [ebp - 0x174]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [ebp - 0x199], al
push 0
push str.SocketCount
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [ebp - 0x198], al
mov ecx, edi
movzx eax, si
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.1000eed0
mov ecx, dword [ebp - 0x18c]
cmp byte [ecx + 0xd], 0
jne 0x1000fad3
cmp si, word [ecx + 0x10]
jge 0x1000fad5
mov ecx, dword [edi]
cmp ecx, dword [edi]
je 0x1000fb12
mov edx, dword [ecx + 0x18]
add ecx, 0x14
cmp edx, dword [ecx + 8]
je 0x1000fb00
movups xmm0, xmmword [ebp - 0x1a8]
mov eax, dword [ebp - 0x198]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
add dword [ecx + 4], 0x14
jmp 0x1000fdaf
lea eax, [ebp - 0x1a8]
push eax
push edx
call fcn.1000da10
jmp 0x1000fdaf
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 3
push eax
push 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], 0
call fcn.1000da10
xor eax, eax
mov word [ebp - 0x20], si
mov esi, dword [ebp - 0x110]
xor edi, edi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x104], esi
cmp esi, eax
je 0x1000fc06
mov ecx, eax
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xccccccc
ja 0x10010b12
lea edi, [eax + eax*4]
shl edi, 2
mov dword [ebp - 0xf8], edi
cmp edi, 0x1000
jb 0x1000fbc0
push edi
call fcn.10003ae0
add esp, 4
mov edi, eax
jmp 0x1000fbd3
test edi, edi
je 0x1000fbd1
push edi
call fcn.100436d1
add esp, 4
mov edi, eax
jmp 0x1000fbd3
xor edi, edi
mov eax, dword [ebp - 0xf8]
push edi
push dword [ebp - 0x10c]
add eax, edi
mov dword [ebp - 0x1c], edi
push esi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], eax
call fcn.1000d970
mov eax, dword [ebp - 0xf8]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 4
push eax
call fcn.1000eed0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x150], xmm0
cmp byte [ecx + 0xd], 0
jne 0x1000fc45
mov eax, dword [ebp - 0x114]
cmp ax, word [ecx + 0x10]
jge 0x1000fcd8
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 4], 0x7ffffff
je 0x10010b17
mov esi, dword [eax]
mov dword [ebp - 0x188], eax
push 0x20
mov byte [ebp - 4], 5
mov dword [ebp - 0x184], 0
call fcn.100436d1
mov ecx, dword [ebp - 0x100]
mov edx, eax
mov eax, dword [ebp - 0x114]
add esp, 4
mov word [edx + 0x10], ax
xor eax, eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [edx + 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0xf8]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x11c]
push edx
push dword [ebp - 0x14c]
mov dword [edx + 0x18], eax
push dword [ebp - 0x150]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov word [edx + 0xc], di
mov dword [ebp - 0x184], edi
call fcn.10010b40
mov esi, dword [ebp - 0x104]
mov byte [ebp - 4], 3
test edi, edi
je 0x1000fd3c
mov ecx, dword [ebp - 0x100]
mov eax, 0x66666667
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x1000fd1d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push ecx
push edi
call fcn.10043123
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x1000fda9
mov ecx, dword [ebp - 0x108]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x1000fd81
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push ecx
push esi
call fcn.10043123
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x1000f920
push str.Muun
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x120]
call fcn.1003e340
push 0x10064684
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x10010413
nop dword [eax]
xor eax, eax
lea ecx, [ebp - 0xf4]
push eax
mov word [ebp - 0x13a], ax
mov byte [ebp - 0x12b], al
mov word [ebp - 0x122], ax
lea eax, [ebp - 0x168]
push 0x1006468c
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov esi, eax
lea ecx, [ebp - 0xf4]
push 0x10064690
lea eax, [ebp - 0x178]
shl esi, 9
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
add eax, esi
lea ecx, [ebp - 0xf4]
push 0
movzx edi, ax
lea eax, [ebp - 0x174]
push 0x10064698
push eax
mov dword [ebp - 0x114], edi
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push ecx
mov dword [esp], 0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x170]
push 0x100646a4
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
push ecx
mov dword [esp], 0
lea eax, [ebp - 0x16c]
push 0x100646b0
push eax
lea ecx, [ebp - 0xf4]
fstp dword [ebp - 0x134]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
push 0
push 0x100646c4
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0xf4]
fstp dword [ebp - 0x130]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x13c], al
lea ecx, [ebp - 0xf4]
push 0x100646d0
lea eax, [ebp - 0x164]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x13b], al
lea ecx, [ebp - 0xf4]
push str.IsGrouped
lea eax, [ebp - 0x160]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
mov byte [ebp - 0x12c], al
push 0
push str.Cat2
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov esi, eax
lea ecx, [ebp - 0xf4]
push str.Index2
lea eax, [ebp - 0x1b8]
shl esi, 9
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
add eax, esi
lea ecx, [ebp - 0xf4]
push 0
mov word [ebp - 0x12a], ax
lea eax, [ebp - 0x1b4]
push str.Cat3
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov esi, eax
lea ecx, [ebp - 0xf4]
push str.Index3
lea eax, [ebp - 0x1bc]
shl esi, 9
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
add eax, esi
lea ecx, [ebp - 0xf4]
push 0
mov word [ebp - 0x126], ax
lea eax, [ebp - 0x1c0]
push str.MinLevel2
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x128], al
lea ecx, [ebp - 0xf4]
push str.MaxLevel2
lea eax, [ebp - 0x17c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x127], al
lea ecx, [ebp - 0xf4]
push str.MinLevel3
lea eax, [ebp - 0x180]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x124], al
lea ecx, [ebp - 0xf4]
push str.MaxLevel3
lea eax, [ebp - 0x154]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [ebp - 0x123], al
movzx eax, di
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1dc]
mov esi, dword [ebp - 0xfc]
push eax
lea ecx, [esi + 0x1c]
call fcn.1000eed0
mov ecx, dword [ebp - 0x1d4]
cmp byte [ecx + 0xd], 0
jne 0x100100e0
cmp di, word [ecx + 0x10]
jge 0x100100e3
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x1c]
je 0x1001012e
mov edx, dword [ecx + 0x18]
add ecx, 0x14
cmp edx, dword [ecx + 8]
je 0x1001011c
movups xmm0, xmmword [ebp - 0x13c]
mov eax, dword [ebp - 0x124]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x12c]
movq qword [edx + 0x10], xmm0
mov dword [edx + 0x18], eax
add dword [ecx + 4], 0x1c
jmp 0x100103e6
lea eax, [ebp - 0x13c]
push eax
push edx
call fcn.1000ea50
jmp 0x100103e6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 6
push eax
push 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], 0
call fcn.1000ea50
mov esi, dword [ebp - 0x110]
xor eax, eax
mov word [ebp - 0x20], di
xor edi, edi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x11c], esi
cmp esi, eax
je 0x1001022a
mov ecx, eax
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x9249249
ja 0x10010b12
lea edi, [eax*8]
sub edi, eax
shl edi, 2
mov dword [ebp - 0x104], edi
cmp edi, 0x1000
jb 0x100101e4
push edi
call fcn.10003ae0
add esp, 4
mov edi, eax
jmp 0x100101f7
test edi, edi
je 0x100101f5
push edi
call fcn.100436d1
add esp, 4
mov edi, eax
jmp 0x100101f7
xor edi, edi
mov eax, dword [ebp - 0x104]
push edi
push dword [ebp - 0x10c]
add eax, edi
mov dword [ebp - 0x1c], edi
push esi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], eax
call fcn.1000d970
mov eax, dword [ebp - 0xf8]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 7
push eax
lea ecx, [ecx + 0x1c]
call fcn.1000eed0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x194], xmm0
cmp byte [ecx + 0xd], 0
jne 0x1001026c
mov eax, dword [ebp - 0x114]
cmp ax, word [ecx + 0x10]
jge 0x10010305
mov eax, dword [ebp - 0xfc]
add eax, 0x1c
cmp dword [eax + 4], 0x7ffffff
je 0x10010b17
mov esi, dword [eax]
mov dword [ebp - 0x14c], eax
push 0x20
mov byte [ebp - 4], 8
mov dword [ebp - 0x148], 0
call fcn.100436d1
mov ecx, dword [ebp - 0x100]
mov edx, eax
mov eax, dword [ebp - 0x114]
add esp, 4
mov word [edx + 0x10], ax
xor eax, eax
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [edx + 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0xf8]
lea ecx, [ecx + 0x1c]
push edx
push dword [ebp - 0x190]
mov dword [edx + 0x18], eax
push dword [ebp - 0x194]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov word [edx + 0xc], di
mov dword [ebp - 0x148], edi
call fcn.10010b40
mov esi, dword [ebp - 0x11c]
mov byte [ebp - 4], 6
test edi, edi
je 0x10010371
mov ecx, dword [ebp - 0x100]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10010352
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push ecx
push edi
call fcn.10043123
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x100103e6
mov ecx, dword [ebp - 0x108]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x100103be
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010b0d
push ecx
push esi
call fcn.10043123
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x1000fe20
push str.Socket
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x120]
call fcn.1003e340
push str.Item
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x100109d6
nop dword [eax]
nop dword [eax + eax]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
push 0x10064748
lea eax, [ebp - 0x184]
movq qword [ebp - 0x12c], xmm0
push eax
lea ecx, [ebp - 0xf4]
movups xmmword [ebp - 0x13c], xmm0
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov esi, eax
lea ecx, [ebp - 0xf4]
push str.Index
lea eax, [ebp - 0x154]
shl esi, 9
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
add eax, esi
lea ecx, [ebp - 0xf4]
push 0
movzx edi, ax
lea eax, [ebp - 0x180]
push str.OptionIndex
push eax
mov dword [ebp - 0x114], edi
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push ecx
mov dword [esp], 0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x17c]
push str.OptionValue
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
push ecx
mov dword [esp], 0
lea eax, [ebp - 0x1c0]
push str.OptionProbability
push eax
lea ecx, [ebp - 0xf4]
fstp dword [ebp - 0x134]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e240
push 0
push str.MinLevel
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0xf4]
fstp dword [ebp - 0x130]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x13c], al
lea ecx, [ebp - 0xf4]
push str.MaxLevel
lea eax, [ebp - 0x1b4]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x13b], al
lea ecx, [ebp - 0xf4]
push str.SeedMinLevel
lea eax, [ebp - 0x168]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [ebp - 0x12c], al
push 0
push str.SeedMaxLevel
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x12b], al
lea ecx, [ebp - 0xf4]
push str.SeedCountFire
lea eax, [ebp - 0x174]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x129], al
lea ecx, [ebp - 0xf4]
push str.SeedCountWater
lea eax, [ebp - 0x170]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x128], al
lea ecx, [ebp - 0xf4]
push str.SeedCountIce
lea eax, [ebp - 0x16c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x127], al
lea ecx, [ebp - 0xf4]
push str.SeedCountWind
lea eax, [ebp - 0x158]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x126], al
lea ecx, [ebp - 0xf4]
push str.SeedCountLight
lea eax, [ebp - 0x164]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x125], al
lea ecx, [ebp - 0xf4]
push str.SeedCountEarth
lea eax, [ebp - 0x160]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov esi, dword [ebp - 0xfc]
mov byte [ebp - 0x124], al
movzx eax, di
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [esi + 0x24]
call fcn.1000eed0
mov ecx, dword [ebp - 0x1d4]
cmp byte [ecx + 0xd], 0
jne 0x100106fd
cmp di, word [ecx + 0x10]
jge 0x10010700
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x24]
je 0x1001074b
mov edx, dword [ecx + 0x18]
add ecx, 0x14
cmp edx, dword [ecx + 8]
je 0x10010739
movups xmm0, xmmword [ebp - 0x13c]
mov eax, dword [ebp - 0x124]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x12c]
movq qword [edx + 0x10], xmm0
mov dword [edx + 0x18], eax
add dword [ecx + 4], 0x1c
jmp 0x100109a9
lea eax, [ebp - 0x13c]
push eax
push edx
call fcn.1000ea50
jmp 0x100109a9
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 9
push eax
push 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], 0
call fcn.1000ea50
mov ecx, dword [ebp - 0x10c]
xor eax, eax
xor esi, esi
mov word [ebp - 0x20], di
xor edi, edi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x14], esi
cmp eax, ecx
je 0x10010839
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x9249249
ja 0x10010b12
lea esi, [eax*8]
sub esi, eax
shl esi, 2
cmp esi, 0x1000
jb 0x100107f5
push esi
call fcn.10003ae0
add esp, 4
mov edi, eax
jmp 0x10010808
test esi, esi
je 0x10010806
push esi
call fcn.100436d1
add esp, 4
mov edi, eax
jmp 0x10010808
xor edi, edi
push edi
push dword [ebp - 0x10c]
lea eax, [edi + esi]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x110]
mov esi, eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], esi
call fcn.1000d970
mov eax, esi
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ecx + 0x24]
call fcn.1000eed0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x194], xmm0
cmp byte [ecx + 0xd], 0
jne 0x100108b8
mov eax, dword [ebp - 0x114]
cmp ax, word [ecx + 0x10]
jl 0x100108b8
test edi, edi
je 0x10010955
sub esi, edi
lea ecx, [ebp - 0x1c]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.10010dc0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x10010955
mov eax, dword [ebp - 0xfc]
add eax, 0x24
cmp dword [eax + 4], 0x7ffffff
je 0x10010b17
mov esi, dword [eax]
mov dword [ebp - 0x14c], eax
push 0x20
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x148], 0
call fcn.100436d1
mov ecx, dword [ebp - 0x114]
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov word [eax + 0x10], cx
mov ecx, dword [ebp - 0xf8]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x100]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0xfc]
push eax
push dword [ebp - 0x190]
mov dword [eax + 0x14], edi
push dword [ebp - 0x194]
mov dword [eax], esi
lea ecx, [ecx + 0x24]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [ebp - 0x1c], 0
mov word [eax + 0xc], 0
mov dword [ebp - 0x148], 0
call fcn.10010b40
mov esi, dword [ebp - 0x110]
mov byte [ebp - 4], 0
test esi, esi
je 0x100109a9
mov ecx, dword [ebp - 0x108]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
lea ecx, [ebp - 0x110]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.10010dc0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x10010460
push str.OptionText
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x120]
call fcn.1003e340
push 0x10064824
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.1003e340
lea ecx, [ebp - 0xf4]
call fcn.1003dee0
test eax, eax
je 0x10010ad6
mov edi, dword [ebp - 0xfc]
nop dword [eax]
push 0
push str.OptionId
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0x1006455b
mov byte [ebp - 0x115], al
lea ecx, [ebp - 0xf4]
push str.Title
lea eax, [ebp - 0x154]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e2b0
movzx ecx, byte [ebp - 0x115]
push eax
lea esi, [ecx*8]
sub esi, ecx
lea ecx, [edi + 0x2c]
lea ecx, [ecx + esi*4]
call fcn.1000d1b0
push 0
push str.ColorID
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0xf4]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [edi + esi*4 + 0x44], al
lea ecx, [ebp - 0xf4]
lea eax, [ebp - 0x17c]
push eax
call fcn.1003eca0
lea ecx, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
call fcn.1003dee0
test eax, eax
jne 0x10010a20
mov eax, dword [ebp - 0x144]
push eax
call fcn.1004370a
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.1003dea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004344b
mov esp, ebp
pop ebp
ret 4
call fcn.10049147
call fcn.10003e40
call fcn.1000d1a0
int3