Function at 0x4131f0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43bc21
mov eax, dword fs:[0]
push eax
mov eax, 0x1598
mov dword fs:[0], esp
call fcn.0042bb10
mov eax, dword [0x44b754]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15b8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x15a4], eax
mov dword [esp + 0x20], edi
call fcn.0041f280
mov eax, dword [0x44d76c]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x15b0], ebx
mov dword [esp + 0x24], ebx
jne 0x413b87
mov eax, dword [edi]
mov ecx, dword [eax + 0x28]
push ebx
call fcn.004173f0
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x28]
push ebx
call fcn.004173d0
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
push str.Copying_install_file...
call fcn.00417370
lea eax, [esp + 0x298]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x4a0]
push ecx
lea edx, [esp + 0x29c]
push str.mabinogi_setup.dat
push edx
call fcn.00416710
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00417ed0
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15b4], 1
call fcn.004182d0
test al, al
jne 0x4132f0
push ebx
push 0x41c
mov ecx, 0x44c660
call fcn.00404d30
lea ecx, [esp + 0x30]
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413ebc
mov ebp, 0xf
mov eax, 0x44e3b4
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413312
sub eax, edx
push eax
push 0x44e3b4
lea ecx, [esp + 0x10c]
call fcn.00403210
lea ecx, [esp + 0x30]
mov byte [esp + 0x15b0], 2
mov dword [esp + 0x28], ebx
call fcn.00417650
test eax, eax
mov esi, 0x10
jbe 0x4138f0
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov esi, dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.00417650
mov ecx, eax
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
mov ecx, esi
push eax
call fcn.004173f0
mov ebp, 0x10
mov edi, 0xf
push 6
push str.data_
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00403210
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xf0]
push ecx
mov byte [esp + 0x15bc], 3
call fcn.004042d0
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x15b4], 4
call fcn.004176b0
push eax
lea eax, [esp + 0x124]
push esi
push eax
call fcn.00412cf0
add esp, 0xc
cmp dword [esp + 0x100], ebp
jb 0x413405
mov ecx, dword [esp + 0xec]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
mov byte [esp + 0x15b0], 6
jb 0x413435
mov edx, dword [esp + 0x60]
push edx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x138], ebp
mov eax, dword [esp + 0x124]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jae 0x413458
lea eax, [esp + 0x124]
push eax
call fcn.00416b70
add esp, 4
test al, al
jne 0x413722
push 6
push str.data_
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.00403210
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0xd4]
push edx
mov byte [esp + 0x15bc], 8
call fcn.004042d0
add esp, 0xc
mov esi, eax
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x15b4], 9
call fcn.004176b0
push eax
lea eax, [esp + 0x160]
push esi
push eax
call fcn.00412cf0
add esp, 0xc
cmp dword [esp + 0xe4], ebp
jb 0x4134f5
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x90], ebp
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov byte [esp + 0x15b0], 0xb
jb 0x413528
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042bb52
add esp, 4
push 6
push str.data_
lea ecx, [esp + 0x9c]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00403210
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x144]
push edx
mov byte [esp + 0x15bc], 0xd
call fcn.004042d0
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x15b0], 0xe
call fcn.00417650
dec eax
push eax
lea ecx, [esp + 0x34]
call fcn.004176b0
push eax
lea eax, [esp + 0x17c]
push esi
push eax
call fcn.00412cf0
add esp, 0xc
cmp dword [esp + 0x154], ebp
jb 0x4135d6
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0xac], ebp
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
mov byte [esp + 0x15b0], 0x10
jb 0x41360c
mov edx, dword [esp + 0x98]
push edx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x174], ebp
mov eax, dword [esp + 0x160]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov esi, 0x419
jae 0x41363d
lea eax, [esp + 0x160]
push eax
call fcn.00416b70
add esp, 4
test al, al
jne 0x41366e
cmp dword [esp + 0x190], ebp
mov eax, dword [esp + 0x17c]
jae 0x413661
lea eax, [esp + 0x17c]
push eax
call fcn.00416b70
add esp, 4
test al, al
jne 0x413673
mov esi, 0x41a
push 4
push esi
mov ecx, 0x44c660
call fcn.00404d30
cmp eax, 7
mov eax, dword [esp + 0x190]
je 0x413990
cmp eax, ebp
jb 0x4136a4
mov eax, dword [esp + 0x17c]
push eax
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x174], ebp
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
jb 0x4136d2
mov ecx, dword [esp + 0x160]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x138], ebp
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
mov byte [esp + 0x15b0], 2
jb 0x413708
mov edx, dword [esp + 0x124]
push edx
call fcn.0042bb52
add esp, 4
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jmp 0x413381
cmp dword [esp + 0x138], ebp
mov eax, dword [esp + 0x124]
jae 0x413739
lea eax, [esp + 0x124]
lea ecx, [esp + 0x39c]
push ecx
push eax
call fcn.00416890
lea edx, [esp + 0x19c]
push edx
lea eax, [esp + 0x3a8]
push eax
lea ecx, [esp + 0x2a8]
push ecx
call fcn.00416710
lea eax, [esp + 0x1a8]
add esp, 0x14
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413786
sub eax, esi
push eax
lea edx, [esp + 0x198]
push edx
lea ecx, [esp + 0xb8]
call fcn.00403210
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 0x514]
mov ecx, dword [edi + 4]
add esi, 0x510
lea eax, [esp + 0xb0]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x15bc], 0x12
call fcn.00407c60
push 1
mov ecx, esi
mov ebp, eax
call fcn.00407d00
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0xc8], 0x10
mov byte [esp + 0x15b0], 6
jb 0x413805
mov edx, dword [esp + 0xb4]
push edx
call fcn.0042bb52
add esp, 4
lea eax, [esp + 0x194]
mov esi, 0xf
push eax
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.00416b70
add esp, 4
test al, al
je 0x413851
lea ecx, [esp + 0x194]
push ecx
call fcn.00416b90
add esp, 4
lea edx, [esp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x138]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x124]
jae 0x41386f
lea eax, [esp + 0x124]
push ebx
lea ecx, [esp + 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x413a58
cmp dword [esp + 0x138], edi
mov byte [esp + 0x15b0], 2
jb 0x4138a8
mov edx, dword [esp + 0x124]
push edx
call fcn.0042bb52
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [esp + 0x138], esi
mov esi, dword [esp + 0x28]
add edx, 0x64
inc esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edx
call fcn.00417650
cmp esi, eax
jb 0x413353
mov edi, dword [esp + 0x20]
mov esi, 0x10
mov ebp, 0xf
lea eax, [esp + 0x298]
push eax
push edi
call fcn.00412da0
add esp, 8
lea ecx, [esp + 0x50]
call fcn.0041f280
lea ecx, [edi + 0x408]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x15b4], 0x13
call fcn.0041f890
test al, al
jne 0x413ad9
push str.Fail_to_open_zip_file.
push 0x44c660
call fcn.00401330
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x15b0], 2
call fcn.0041f290
cmp dword [esp + 0x11c], esi
jb 0x413966
mov edx, dword [esp + 0x108]
push edx
call fcn.0042bb52
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413ebc
cmp eax, ebp
jb 0x4139a4
mov eax, dword [esp + 0x17c]
push eax
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x174], ebp
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
jb 0x4139d2
mov ecx, dword [esp + 0x160]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x138], ebp
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
jb 0x413a00
mov edx, dword [esp + 0x124]
push edx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x11c], ebp
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x413a2e
mov eax, dword [esp + 0x108]
push eax
call fcn.0042bb52
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413ebc
push ebx
push 0x41b
mov ecx, 0x44c660
call fcn.00404d30
cmp dword [esp + 0x138], edi
jb 0x413a81
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0042bb52
add esp, 4
cmp dword [esp + 0x11c], edi
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
jb 0x413aaf
mov edx, dword [esp + 0x108]
push edx
call fcn.0042bb52
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413ebc
lea eax, [esp + 0x50]
push eax
push edi
call fcn.00412b30
add esp, 8
test al, al
lea ecx, [esp + 0x50]
mov byte [esp + 0x15b0], 2
jne 0x413b3f
call fcn.0041f290
cmp dword [esp + 0x11c], esi
jb 0x413b15
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0042bb52
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413ebc
call fcn.0041f290
cmp dword [esp + 0x11c], esi
jb 0x413b5d
mov edx, dword [esp + 0x108]
push edx
call fcn.0042bb52
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x15b0], bl
call fcn.00417f70
jmp 0x413efa
cmp eax, 3
jne 0x413c33
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x44c660
call fcn.00402770
test al, al
je 0x413c2b
push 0x18
call fcn.0042a12c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov byte [esp + 0x15b0], 0x14
je 0x413c10
push 0x10
call fcn.0042a12c
add esp, 4
cmp eax, ebx
je 0x413bee
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, eax
call fcn.00406760
jmp 0x413bf0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi], 0x43dcb4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov byte [esi + 0x14], 1
jmp 0x413c12
xor esi, esi
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x15b4], bl
call fcn.0041f4d0
test al, al
jne 0x413cca
push ebx
push 0xe
jmp 0x413eb2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, 0x44c660
call fcn.00402770
test al, al
je 0x413d07
push 0x18
call fcn.0042a12c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov byte [esp + 0x15b0], 0x15
je 0x413cb3
push 0x10
call fcn.0042a12c
add esp, 4
cmp eax, ebx
je 0x413c91
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, eax
call fcn.00406760
jmp 0x413c93
xor eax, eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi], 0x43dcb4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov byte [esi + 0x14], 1
jmp 0x413cb5
xor esi, esi
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x15b4], bl
call fcn.0041f4d0
test al, al
je 0x413cf5
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00412b30
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x15b0], 0xffffffff
call fcn.0041f290
mov al, bl
jmp 0x413f10
push str.Fail_to_open_merged_zip_file.
push 0x44c660
call fcn.00401330
add esp, 8
push 0x1000
lea ecx, [esp + 0x5a8]
push ecx
push 0x1a
mov ecx, 0x44c660
call fcn.004014d0
lea edx, [esp + 0x5a4]
push edx
lea ecx, [esp + 0x140]
call fcn.00416b50
push 0xd
lea ecx, [esp + 0x140]
mov byte [esp + 0x15b4], 0x16
call fcn.00416a20
push 0xa
lea ecx, [esp + 0x140]
call fcn.00416a20
push 9
lea ecx, [esp + 0x140]
call fcn.00416a20
push 0x20
lea ecx, [esp + 0x140]
call fcn.00416a20
lea ecx, [esp + 0x13c]
call fcn.00416ad0
mov esi, eax
cmp esi, ebx
jne 0x413dba
push str.Invalid_download_server_list.
push 0x44c660
call fcn.00401330
add esp, 8
mov ecx, 0x44c660
call fcn.00404d90
lea ecx, [esp + 0x13c]
mov byte [esp + 0x15b0], bl
call fcn.004169b0
jmp 0x413ebc
push ebx
call fcn.0042d06c
push eax
call fcn.0042d03d
add esp, 8
call fcn.0042d04a
cmp esi, 2
jne 0x413de9
cdq
mov ecx, 0x64
idiv ecx
xor eax, eax
cmp edx, 0x32
setg al
mov dword [esp + 0x10], eax
jmp 0x413df1
xor edx, edx
div esi
mov dword [esp + 0x10], edx
xor ebp, ebp
cmp esi, ebx
jbe 0x413ede
jmp 0x413e00
lea ecx, [esp + 0x13c]
call fcn.00416ac0
mov edi, eax
cmp edi, ebx
je 0x413ed4
cmp ebp, dword [esp + 0x10]
je 0x413e21
inc ebp
cmp ebp, esi
jb 0x413e00
cmp byte [0x44db94], bl
je 0x413e41
mov edi, 0x44db94
push edi
push str.Overrrided_ftp_:__s
push 0x44c660
call fcn.00401330
add esp, 0xc
mov edx, dword [esp + 0x20]
sub edx, edi
mov eax, edi
add edx, 8
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x413e50
lea ecx, [esp + 0x13c]
mov byte [esp + 0x15b0], bl
call fcn.004169b0
mov esi, dword [esp + 0x20]
push esi
call fcn.00412730
add esp, 4
test al, al
je 0x413ebc
mov ecx, dword [esi]
call fcn.00404e10
test al, al
jne 0x413efa
lea ecx, [esi + 0x408]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041f890
test al, al
jne 0x413ee8
push str.Fail_to_open_zip_file.
push 0x44c660
call fcn.00401330
add esp, 8
push ebx
push 0x16
mov ecx, 0x44c660
call fcn.00404d30
lea ecx, [esp + 0x14]
mov dword [esp + 0x15b0], 0xffffffff
call fcn.0041f290
xor al, al
jmp 0x413f10
push str.Invalid_download_server
jmp 0x413d8b
push str.download_server_ptr_is_NULL.
jmp 0x413d8b
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00412b30
add esp, 8
test al, al
je 0x413ebc
lea ecx, [esp + 0x14]
mov dword [esp + 0x15b0], 0xffffffff
call fcn.0041f290
mov al, 1
mov ecx, dword [esp + 0x15a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1598]
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0x15a4
ret