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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
mov dword [esp + 8], ecx
mov eax, dword [0x101d96d0]
cmp dword [eax], 0
je 0x1005d524
mov dword [esp + 0x24], 1
jmp 0x1005d52c
mov dword [esp + 0x24], 0
movzx ecx, byte [esp + 0x24]
test ecx, ecx
jne 0x1005d53a
jmp 0x1005d968
mov edx, 4
imul eax, edx, 6
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov eax, dword [eax + edx]
mov dword [esp + 0xac], eax
push 0
push str.attacker
mov ecx, dword [esp + 0x10]
call dword [esp + 0xb4]
mov dword [esp + 0x60], eax
mov ecx, dword [0x101d96d0]
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x5c]
call fcn.1005ad50
cmp dword [esp + 0x60], eax
je 0x1005d588
jmp 0x1005d968
mov eax, 4
imul ecx, eax, 9
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x64], ecx
push 0x101a02bb
push 0x101a36a4
mov ecx, dword [esp + 0x10]
call dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
add ecx, 1
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0xc]
mov al, byte [edx]
mov byte [esp + 2], al
add dword [esp + 0xc], 1
cmp byte [esp + 2], 0
jne 0x1005d5ce
mov ecx, dword [esp + 0xc]
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
lea edx, [esp + 0xd0]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov dword [eax], str.knife
mov dword [esp + 0x10], str.knife
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x10]
mov al, byte [edx]
mov byte [esp + 3], al
add dword [esp + 0x10], 1
cmp byte [esp + 3], 0
jne 0x1005d636
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x74]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0xd4]
jne 0x1005d6d4
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [esp + 0xd4]
push ecx
mov edx, dword [esp + 0x80]
push edx
call fcn.1016e42d
add esp, 0xc
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x7c], 0
jne 0x1005d6d4
mov dword [esp + 0x34], 1
jmp 0x1005d6dc
mov dword [esp + 0x34], 0
mov al, byte [esp + 0x34]
mov byte [esp + 4], al
movzx ecx, byte [esp + 4]
test ecx, ecx
jne 0x1005d800
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x38]
mov dword [edx], str.knife_t
mov dword [esp + 0x14], str.knife_t
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx]
mov byte [esp + 5], dl
add dword [esp + 0x14], 1
cmp byte [esp + 5], 0
jne 0x1005d732
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x84]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0xdc]
jne 0x1005d7e2
mov edx, dword [esp + 0x3c]
push edx
mov eax, dword [esp + 0xdc]
push eax
mov ecx, dword [esp + 0x90]
push ecx
call fcn.1016e42d
add esp, 0xc
mov dword [esp + 0x8c], eax
cmp dword [esp + 0x8c], 0
jne 0x1005d7e2
mov dword [esp + 0x40], 1
jmp 0x1005d7ea
mov dword [esp + 0x40], 0
mov dl, byte [esp + 0x40]
mov byte [esp + 6], dl
movzx eax, byte [esp + 6]
test eax, eax
jne 0x1005d800
jmp 0x1005d968
mov ecx, 0x2a
call fcn.1005aff0
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
je 0x1005d968
mov ecx, dword [0x101d84b8]
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 0x50]
call eax
mov dword [esp + 0x44], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [edx + ecx]
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x44]
call dword [esp + 0x94]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov cx, word [eax + 0x20]
mov word [esp + 0x22], cx
mov edx, 4
shl edx, 2
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [edx + ecx]
mov dword [esp + 0x98], edx
movzx eax, word [esp + 0x22]
push eax
mov ecx, dword [esp + 0x50]
call dword [esp + 0x9c]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x50], 0
je 0x1005d968
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x1dc]
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x1c], 0
je 0x1005d968
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
add edx, 1
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
mov byte [esp + 7], cl
add dword [esp + 0x18], 1
cmp byte [esp + 7], 0
jne 0x1005d8dc
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x9c]
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xe4], eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0xa4], ecx
push str.weapon_
mov ecx, dword [esp + 0xa8]
call fcn.10058c30
movzx edx, al
test edx, edx
je 0x1005d968
mov eax, 4
shl eax, 4
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov eax, dword [eax + edx]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x1c]
add ecx, 7
push ecx
push 0x101a36a4
mov ecx, dword [esp + 0x10]
call dword [esp + 0xb0]
mov esp, ebp
pop ebp
ret