Function at 0x4af1b0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x4be9f0
mov eax, dword [ebp + 8]
push eax
call fcn.0042d35c
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4af1da
mov eax, 1
jmp 0x4af3fb
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 4
lea edx, [ebp - 0x20]
push edx
call fcn.0042d613
add esp, 0x10
cmp eax, 1
je 0x4af1fd
mov eax, 1
jmp 0x4af3fb
push 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042cf59
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
call fcn.0042d613
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x4af233
mov eax, 1
jmp 0x4af3fb
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0042d613
add esp, 0x10
cmp eax, 1
je 0x4af256
mov eax, 1
jmp 0x4af3fb
push 0xc
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042cf59
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0xc
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042d613
add esp, 0x10
cmp dword [ebp - 0x14], eax
je 0x4af28c
mov eax, 1
jmp 0x4af3fb
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 4
lea edx, [ebp - 0x28]
push edx
call fcn.0042d613
add esp, 0x10
cmp eax, 1
je 0x4af2af
mov eax, 1
jmp 0x4af3fb
push 6
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042cf59
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 6
mov eax, dword [ebp - 0x24]
push eax
call fcn.0042d613
add esp, 0x10
cmp dword [ebp - 0x28], eax
je 0x4af2e5
mov eax, 1
jmp 0x4af3fb
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042d8dc
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sym.NifMopp.exe_GenerateMoppCodeWithSubshapes
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x4af332
mov eax, 1
jmp 0x4af3fb
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042cfe8
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sym.NifMopp.exe_RetrieveMoppCode
test eax, eax
jne 0x4af35c
mov eax, 1
jmp 0x4af3fb
lea eax, [ebp - 8]
push eax
call sym.NifMopp.exe_RetrieveMoppScale
lea ecx, [ebp - 0x34]
push ecx
call sym.NifMopp.exe_RetrieveMoppOrigin
push 0x4be9f4
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042d35c
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4af38f
mov eax, 1
jmp 0x4af3fb
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 4
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042d792
add esp, 0x10
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0042d792
add esp, 0x10
mov edx, dword [ebp - 0x1c]
push edx
push 1
push 4
lea eax, [ebp - 8]
push eax
call fcn.0042d792
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 4
lea edx, [ebp - 0x34]
push edx
call fcn.0042d792
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042d23c
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042d8dc
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret