Function at 0x18002c230
Capabilities:
Load assembly via iassembly

Disassembly:
push rsi
push rdi
sub rsp, 0x678
mov rax, qword [0x18005d440]
xor rax, rsp
mov qword [rsp + 0x660], rax
lea rcx, [rsp + 0x350]
call fcn.180029b60
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
lea rcx, [rsp + 0x300]
call fcn.180029b60
mov rax, qword [0x180094670]
add rax, 0x299c2b8
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
add rax, 0xb8
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x1c8], rax
mov rcx, qword [rsp + 0x1c8]
call fcn.1800290d0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
add rax, 0x10
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
add rax, 0x28
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18002c30c
jmp 0x18002ce7c
mov rax, qword [rsp + 0x70]
add rax, 0x10
mov rcx, rax
call fcn.180029050
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x40], 0
jmp 0x18002c34e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x40], eax
jg 0x18002ce7c
mov eax, dword [rsp + 0x40]
shl eax, 3
cdqe
mov rcx, qword [rsp + 0x110]
lea rax, [rcx + rax + 0x20]
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x186a0
ja 0x18002c392
jmp 0x18002c344
mov rax, qword [rsp + 0xa0]
add rax, 0x10
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x186a0
ja 0x18002c3b8
jmp 0x18002c344
mov rax, qword [rsp + 0x60]
add rax, 0x30
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0x186a0
ja 0x18002c3e4
jmp 0x18002c344
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x18002c412
jmp 0x18002c344
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 0x54]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax + 8]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x128], rax
mov rcx, qword [0x180094610]
call fcn.180038760
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x98
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x78]
call fcn.18002b4c0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x78], 0
je 0x18002c511
cmp qword [rsp + 0x80], 0
je 0x18002c511
lea rdx, [0x180052b78]
mov rcx, qword [rsp + 0x80]
call fcn.180041380
test rax, rax
jne 0x18002c507
lea rdx, [0x180052b88]
mov rcx, qword [rsp + 0x80]
call fcn.180041380
test rax, rax
je 0x18002c511
mov dword [rsp + 0x44], 1
jmp 0x18002c519
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x30], al
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0x128]
mov rdi, rax
lea rsi, [rcx + 0x90]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xb8]
add rax, 0x60
mov rcx, rax
call fcn.1800290d0
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x18002c56f
jmp 0x18002c344
lea rax, [rsp + 0x5e0]
mov rdi, rax
mov rsi, qword [rsp + 0xc0]
mov ecx, 0x80
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x5e0]
test rax, rax
jne 0x18002c59b
jmp 0x18002c344
xorps xmm0, xmm0
movss dword [rsp + 0x48], xmm0
movzx eax, byte [0x180094fc8]
test eax, eax
je 0x18002c6a4
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0x79636552
jne 0x18002c6a4
call qword [0x180094a80]
movss xmm1, dword [rsp + 0x48]
addss xmm1, dword [0x1800573a8]
comiss xmm0, xmm1
jbe 0x18002c6a4
mov edx, 0x30
mov rcx, qword [0x180094610]
call fcn.180038ea0
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x130]
call fcn.180038e00
mov qword [rsp + 0x138], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x138]
call fcn.180035d90
movss xmm1, dword [0x18005744c]
comiss xmm1, xmm0
jbe 0x18002c698
mov rax, qword [0x180094b38]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x140], rax
lea rdx, str.SVSwitch
mov rcx, qword [rsp + 0x140]
call fcn.180029c90
lea rcx, [rsp + 0x3a0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x118
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x3a0]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x148]
call qword [0x180094a80]
movss dword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x90]
call fcn.1800298d0
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0x706f7244
jne 0x18002c7ed
movzx eax, byte [0x180094f7f]
test eax, eax
je 0x18002c7ed
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0x28], 0x6b636162
jne 0x18002c6ea
jmp 0x18002c344
cmp dword [rsp + 0x5e0], 0x6f727261
jne 0x18002c6fc
jmp 0x18002c344
cmp dword [rsp + 0x5ec], 0x69616e2e
jne 0x18002c70e
jmp 0x18002c344
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x150]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x18002c732
jmp 0x18002c344
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x150]
call fcn.18003b870
mov qword [rsp + 0x158], rax
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movss xmm2, dword [0x180057528]
movss xmm1, dword [0x18005757c]
lea rcx, [rsp + 0x1f8]
call fcn.180029870
lea rcx, [rsp + 0xd0]
call fcn.1800044b0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xf0]
call fcn.180041bf0
movzx eax, al
test eax, eax
je 0x18002c7e8
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x1f8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x210]
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0xd0]
call fcn.180035eb0
jmp 0x18002c344
movzx eax, byte [0x180094f6b]
test eax, eax
jne 0x18002c828
movzx eax, byte [0x180094f6c]
test eax, eax
jne 0x18002c828
movzx eax, byte [0x180094f70]
test eax, eax
jne 0x18002c828
movzx eax, byte [0x180094f72]
test eax, eax
jne 0x18002c828
movzx eax, byte [0x180094f73]
test eax, eax
je 0x18002cb8d
movzx eax, byte [0x180094f6c]
test eax, eax
je 0x18002c8cd
cmp dword [rsp + 0x614], 0x6e6f7473
je 0x18002c851
cmp dword [rsp + 0x60f], 0x6e6f7473
jne 0x18002c8cd
mov rax, qword [0x180094b98]
mov qword [rsp + 0x160], rax
lea rcx, str.Stone_Ore
call qword [rsp + 0x160]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x1f0]
call fcn.1800044b0
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x180057550]
movss xmm2, dword [0x180057550]
movss xmm1, dword [0x180057550]
lea rcx, [rsp + 0x254]
call fcn.180029870
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x18002cb17
movzx eax, byte [0x180094f6b]
test eax, eax
je 0x18002c965
cmp dword [rsp + 0x614], 0x6174656d
je 0x18002c8f6
cmp dword [rsp + 0x60f], 0x6174656d
jne 0x18002c965
mov rax, qword [0x180094b98]
mov qword [rsp + 0x168], rax
lea rcx, str.Metal_Ore
call qword [rsp + 0x168]
mov qword [rsp + 0x50], rax
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x1800574fc]
movss xmm2, dword [0x180057524]
movss xmm1, dword [0x180057568]
lea rcx, [rsp + 0x264]
call fcn.180029870
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x18002cb17
movzx eax, byte [0x180094f73]
test eax, eax
je 0x18002c9ec
cmp dword [rsp + 0x5fd], 0x70726f63
jne 0x18002c9ec
mov rax, qword [0x180094b98]
mov qword [rsp + 0x170], rax
lea rcx, str.Corpse
call qword [rsp + 0x170]
mov qword [rsp + 0x50], rax
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x18005758c]
movss xmm2, dword [0x180057598]
movss xmm1, dword [0x180057514]
lea rcx, [rsp + 0x274]
call fcn.180029870
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x18002cb17
movzx eax, byte [0x180094f70]
test eax, eax
je 0x18002ca84
cmp dword [rsp + 0x614], 0x666c7573
je 0x18002ca15
cmp dword [rsp + 0x60f], 0x666c7573
jne 0x18002ca84
mov rax, qword [0x180094b98]
mov qword [rsp + 0x178], rax
lea rcx, str.Sulfur_Ore
call qword [rsp + 0x178]
mov qword [rsp + 0x50], rax
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x1800574dc]
movss xmm2, dword [0x180057580]
movss xmm1, dword [0x180057590]
lea rcx, [rsp + 0x284]
call fcn.180029870
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x18002cb17
movzx eax, byte [0x180094f72]
test eax, eax
je 0x18002cb08
cmp dword [rsp + 0x614], 0x632d706d
jne 0x18002cb08
mov rax, qword [0x180094b98]
mov qword [rsp + 0x180], rax
lea rcx, [0x180052be4]
call qword [rsp + 0x180]
mov qword [rsp + 0x50], rax
movss xmm0, dword [0x1800575a4]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x1800575a0]
movss xmm2, dword [0x1800575a0]
movss xmm1, dword [0x1800575a0]
lea rcx, [rsp + 0x294]
call fcn.180029870
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x18002cb17
movzx eax, word [rsp + 0x34]
cmp eax, 6
je 0x18002cb17
jmp 0x18002c344
movzx eax, word [rsp + 0x34]
cmp eax, 6
je 0x18002cb8d
lea rcx, [rsp + 0xd8]
call fcn.1800044b0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xf0]
call fcn.180041bf0
movzx eax, al
test eax, eax
je 0x18002cb88
lea rax, [rsp + 0x220]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x50]
add rax, 0x14
lea r8, [rsp + 0x220]
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
call fcn.180035eb0
jmp 0x18002c344
movzx eax, word [rsp + 0x34]
cmp eax, 6
jne 0x18002ce77
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.1800406f0
movzx eax, al
test eax, eax
jne 0x18002cbbb
jmp 0x18002c344
mov rcx, qword [rsp + 0x38]
call fcn.1800408f0
movzx eax, al
test eax, eax
je 0x18002cbdc
movzx eax, byte [0x180094f75]
test eax, eax
jne 0x18002cbdc
jmp 0x18002c344
mov rcx, qword [rsp + 0x38]
call fcn.18003a690
mov rcx, rax
call fcn.180040a90
movzx eax, al
test eax, eax
je 0x18002cc05
movzx eax, byte [0x180094f74]
test eax, eax
jne 0x18002cc05
jmp 0x18002c344
mov rcx, qword [rsp + 0x38]
call fcn.1800407c0
movzx eax, al
test eax, eax
je 0x18002cc27
mov rax, qword [rsp + 0x58]
mov qword [0x180094610], rax
jmp 0x18002ce77
cmp qword [0x180094610], 0
je 0x18002ce77
movzx eax, byte [0x180094f6a]
test eax, eax
je 0x18002ce77
mov rax, qword [0x180094b58]
mov qword [rsp + 0x188], rax
mov edx, pe_nt_image_headers64
mov rcx, qword [0x180094610]
call qword [rsp + 0x188]
movzx eax, al
test eax, eax
je 0x18002ce77
movzx eax, byte [0x180094f5b]
test eax, eax
je 0x18002ccec
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x18002ccec
mov rdx, qword [0x180094610]
mov rcx, qword [rsp + 0x38]
call fcn.180040930
movzx eax, al
test eax, eax
jne 0x18002ccec
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x2a8]
call fcn.18002f390
lea rax, [rsp + 0x2d0]
lea rcx, [rsp + 0x2a8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov r8b, 1
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x2d0]
call fcn.18002bd90
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180038ea0
mov qword [rsp + 0x190], rax
lea rdx, [rsp + 0x23c]
mov rcx, qword [rsp + 0x190]
call fcn.180038e00
mov qword [rsp + 0x1a0], rax
mov edx, 0x30
mov rcx, qword [0x180094610]
call fcn.180038ea0
mov qword [rsp + 0x198], rax
lea rdx, [rsp + 0x248]
mov rcx, qword [rsp + 0x198]
call fcn.180038e00
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1a8]
call fcn.18002b880
movss dword [rsp + 0x4c], xmm0
movss xmm0, dword [0x18005d3c0]
comiss xmm0, dword [rsp + 0x4c]
jb 0x18002ce77
mov rcx, qword [rsp + 0x38]
call fcn.180035fe0
movzx eax, byte [0x180094f71]
test eax, eax
jne 0x18002cda4
movzx eax, byte [0x180094f6d]
test eax, eax
je 0x18002cdae
mov rcx, qword [rsp + 0x38]
call fcn.18002d3c0
movzx eax, byte [0x180094f8e]
test eax, eax
je 0x18002ce77
mov rax, qword [0x1800949e8]
mov qword [rsp + 0x1b0], rax
mov ecx, dword [0x180094f90]
call qword [rsp + 0x1b0]
movzx eax, al
test eax, eax
je 0x18002ce77
mov rcx, qword [0x180094610]
call fcn.18003a650
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
je 0x18002ce77
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180038ea0
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1b8]
call fcn.180038e00
movss xmm0, dword [0x180057448]
comiss xmm0, dword [rsp + 0x4c]
jbe 0x18002ce77
lea rax, [rsp + 0x1e0]
lea rcx, [rsp + 0x1d0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov r8, qword [0x180094610]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xe8]
call fcn.1800446c0
jmp 0x18002c344
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.18004a510
add rsp, 0x678
pop rdi
pop rsi
ret