Function at 0x411220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [ebp - 0xb8], ecx
mov esi, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], 0x2a
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411d28
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov word [ebp - 0x40], 0x6170
mov byte [ebp - 0x3e], 0x6b
mov dword [ebp - 0x44], 3
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x60], eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea ebx, [ebp - 0x60]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x30], eax
cmp eax, 0xf
ja 0x411d48
cmp eax, 1
jne 0x4113bd
mov dl, byte [esi]
mov byte [ebp - 0x58], dl
mov edx, dword [ebp - 0xc0]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov byte [edx + eax], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb0], eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0041fe00
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4112fd
mov eax, dword [ebp - 0x28]
mov dword [esp], esi
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc0]
cmp edx, eax
je 0x41131a
mov eax, dword [ebp - 0x58]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc4]
cmp edx, eax
je 0x411337
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov dword [esp + 4], 0x48892b
mov dword [esp], esi
call sub.msvcrt.dll_fopen
lea edi, [ebp - 0x78]
mov ebx, eax
mov ecx, edi
mov dword [ebp - 0xac], eax
call fcn.004201a0
test ebx, ebx
je 0x412081
mov ebx, dword [ebp - 0xac]
jmp 0x411375
cmp eax, 0x1a
je 0x4113e0
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
jne 0x411370
mov dword [ebp - 0xac], ebx
mov dword [esp + 8], str.reached_end_of_file_while_skipping_header
mov dword [esp + 4], str.skip_header
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.004256d0
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edi, dword [ebp - 0xac]
test edi, edi
je 0x4112ba
mov eax, dword [ebp - 0xc0]
lea edi, [ebp - 0x30]
jmp 0x411d68
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp dword [ebp - 0xa4], 0x3eb
ja 0x411d90
lea eax, [ebp - 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040c0d0
mov eax, dword [ebp - 0x98]
cmp ax, 1
je 0x412046
and eax, 0xffff
mov dword [esp], str.__found__d_files_to_extract_n_n
mov dword [esp + 4], eax
call fcn.004719d0
cmp word [ebp - 0x98], 0
je 0x4113a5
mov dword [ebp - 0xbc], 0
nop
mov esi, dword [ebp - 0xac]
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov dword [ebp - 0xc8], eax
mov dword [esp], esi
mov ecx, dword [ebp - 0xb8]
call fcn.0040d5b0
mov edi, eax
lea eax, [ebp - 0x88]
push ecx
test edi, edi
mov dword [ebp - 0x90], eax
je 0x411fcf
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov esi, eax
mov dword [ebp - 0x30], eax
cmp eax, 0xf
ja 0x411ab0
cmp eax, 1
je 0x411aa0
test eax, eax
jne 0x411ba0
lea edx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [edx + eax], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x8c]
mov byte [ebp - 0x70], 0
cmp eax, 7
je 0x4119a0
cmp eax, 6
jne 0x411510
mov eax, dword [ebp - 0x90]
cmp dword [eax], 0x64697262
je 0x411bd0
nop
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x30]
mov dword [esp + 4], eax
lea edi, [ebp - 0x78]
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call fcn.0040cd40
push ebx
push ebx
lea ebx, [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], ebx
cmp edx, ebx
je 0x411db8
lea edi, [ebp - 0x70]
mov esi, dword [ebp - 0x28]
cmp eax, edi
je 0x411bb0
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
test eax, eax
je 0x411bb9
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xb4]
cmp edx, eax
je 0x411599
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov ecx, dword [ebp - 0x74]
test ecx, ecx
jne 0x411628
mov eax, dword [ebp - 0xac]
lea edi, [ebp - 0x78]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], str.p_li
mov dword [esp], eax
call fcn.00471a30
lea eax, [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 8], str._s_has_no_name___using__s__as_default
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Unmerge
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.00425600
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047bd90
sub esp, 0x10
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x48]
lea eax, [esi + 1]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
mov dword [esp], eax
call fcn.0047df40
push eax
mov eax, 0x3fffffff
mov edx, dword [ebp - 0x44]
sub eax, edx
cmp eax, esi
jb 0x411fdb
mov dword [esp + 4], esi
mov dword [esp], edi
mov ecx, dword [ebp - 0xb0]
call fcn.0047e1c0
push eax
push eax
cmp dword [ebp - 0x44], 0x3fffffff
je 0x411fe7
mov dword [esp + 4], 1
mov dword [esp], 0x488901
mov ecx, dword [ebp - 0xb0]
call fcn.0047e1c0
push esi
mov eax, 0x3fffffff
push esi
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x74]
sub eax, edi
mov ecx, dword [ebp - 0x78]
cmp eax, edx
jb 0x411ff3
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, dword [ebp - 0xb0]
call fcn.0047e1c0
push ebx
lea edx, [eax + 8]
push ebx
mov edi, dword [ebp - 0xb4]
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x411b68
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
mov eax, 0x3fffffff
sub eax, ecx
cmp eax, 3
jbe 0x411fff
mov dword [esp + 4], 4
mov dword [esp], str..pak
lea ecx, [ebp - 0x30]
call fcn.0047e1c0
lea ebx, [ebp - 0x58]
push edx
push edx
mov dword [ebp - 0x60], ebx
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [ebp - 0xc0], ebx
mov esi, dword [eax + 4]
cmp ecx, edx
je 0x411af8
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x5c], ecx
mov dword [eax], edx
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xb4]
cmp edx, eax
je 0x411791
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc4]
cmp edx, eax
je 0x4117ae
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov dword [esp + 4], 0x488888
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
mov eax, dword [ebp - 0x60]
test esi, esi
je 0x41200b
mov dword [esp + 4], eax
mov dword [esp], str.__writing__s_...__n
call fcn.004719d0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc8]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0xac]
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov dword [esp + 4], str.Simutrans_object_file_nCompiled_with_SimObjects_0.1.3exp_n
mov dword [esp], esi
call fcn.00471a00
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x3eb
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov dword [0x4b6064], eax
mov eax, dword [ebp - 0xb0]
mov word [ebp - 0x44], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0x544f4f52
mov dword [esp + 4], eax
mov dword [esp], esi
mov ebx, dword [ebp - 0xb8]
mov ecx, ebx
call fcn.00410430
push eax
push eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [ebp - 0xac], edi
mov dword [esp], edi
call fcn.0040c0d0
lea eax, [ebp - 0x30]
mov dword [esp], esi
mov dword [esp + 4], eax
mov ecx, ebx
call fcn.00410430
push ecx
push ecx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00480010
mov edi, eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call fcn.0047ffe0
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov ecx, ebx
mov edi, dword [ebp - 0xac]
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00410ba0
sub esp, 0xc
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc0]
cmp edx, eax
je 0x411933
mov eax, dword [ebp - 0x58]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
cmp edx, eax
je 0x41194d
mov eax, dword [ebp - 0x70]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x88]
cmp edx, eax
je 0x411b38
mov eax, dword [ebp - 0x88]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edx, dword [ebp - 0xbc]
inc edx
xor eax, eax
mov dword [ebp - 0xbc], edx
mov ax, word [ebp - 0x98]
mov ebx, dword [ebp - 0xbc]
cmp ebx, eax
jl 0x411468
jmp 0x4113a5
mov eax, dword [ebp - 0x90]
cmp dword [eax], 0x74636166
jne 0x411510
cmp dword [eax + 3], 0x79726f74
jne 0x411510
mov eax, dword [ebp - 0xac]
lea edi, [ebp - 0x78]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
lea edi, [ebp - 0x78]
mov ebx, dword [ebp - 0xac]
mov dword [esp], ebx
call fcn.0040c0d0
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.0040cd40
push eax
lea edi, [ebp - 0x28]
push eax
mov dword [ebp - 0xb4], edi
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
cmp edx, edi
je 0x411e88
lea ebx, [ebp - 0x70]
mov edi, dword [ebp - 0x28]
cmp eax, ebx
je 0x411e30
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edi
test eax, eax
je 0x411e39
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xb4]
cmp edx, eax
je 0x411a81
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
jmp 0x411599
mov dl, byte [edi]
mov byte [ebp - 0x88], dl
jmp 0x4114c8
lea eax, [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
lea ecx, [ebp - 0x90]
call fcn.0047e350
push edx
push edx
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x88], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
jmp 0x4114ce
lea edi, [esi + 1]
mov esi, edx
mov ebx, edi
mov edi, dword [ebp - 0xc0]
cmp ebx, 4
jb 0x411b11
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test bl, 2
je 0x411b23
mov cx, word [esi]
mov word [edi], cx
mov ecx, 2
and ebx, 1
je 0x411761
mov bl, byte [esi + ecx]
mov byte [edi + ecx], bl
jmp 0x411761
mov eax, dword [ebp - 0xbc]
inc eax
mov dword [ebp - 0xbc], eax
xor eax, eax
mov ebx, dword [ebp - 0xbc]
mov ax, word [ebp - 0x98]
cmp eax, ebx
jg 0x411468
jmp 0x4113a5
lea ebx, [esi + 1]
mov esi, edx
cmp ebx, 4
jb 0x411b79
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test bl, 2
je 0x411b8b
mov cx, word [esi]
mov word [edi], cx
mov ecx, 2
and ebx, 1
je 0x4116fd
mov bl, byte [esi + ecx]
mov byte [edi + ecx], bl
jmp 0x4116fd
lea eax, [ebp - 0x88]
jmp 0x411ada
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb4], eax
jmp 0x411572
cmp word [eax + 4], 0x6567
jne 0x411510
mov esi, dword [ebp - 0xac]
lea edi, [ebp - 0x78]
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov dword [ebp - 0xc0], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.0040cd40
push eax
lea edi, [ebp - 0x28]
push eax
mov dword [ebp - 0xb4], edi
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
cmp edx, edi
je 0x411e50
lea edi, [ebp - 0x70]
mov esi, dword [ebp - 0x28]
cmp eax, edi
je 0x411e10
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
test eax, eax
je 0x411e19
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xb4]
cmp edx, eax
je 0x411c73
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov edi, dword [ebp - 0x74]
test edi, edi
jne 0x411628
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
lea edi, [ebp - 0x78]
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0xac]
mov dword [esp], ebx
call fcn.0040c0d0
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x48]
cmp eax, 0x31474d49
je 0x411df0
cmp eax, 0x474d49
je 0x411df0
cmp eax, 0x53525543
je 0x411eba
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
jmp 0x411599
mov dword [esp + 4], 0x48892b
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
jne 0x411375
jmp 0x41124d
lea edi, [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], edi
mov ecx, ebx
call fcn.0047e350
push edx
push edx
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0xac]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x60]
jmp 0x4112c3
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Skipping_file__s___version_mismatch
mov dword [esp + 4], str.Unmerge
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.00425600
jmp 0x4113a5
test ecx, ecx
je 0x411ddb
cmp ecx, 1
je 0x411f7e
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x30]
jmp 0x411572
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x411ca7
mov eax, dword [ebp - 0x48]
jmp 0x411cf2
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb4], eax
jmp 0x411c4c
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb4], eax
jmp 0x411a5a
test ecx, ecx
je 0x411e73
cmp ecx, 1
je 0x411f6e
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x30]
jmp 0x411c4c
test ecx, ecx
je 0x411eab
cmp ecx, 1
je 0x411f5e
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x30]
jmp 0x411a5a
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x30]
mov dword [esp + 4], eax
lea edi, [ebp - 0x78]
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call fcn.0040cd40
push esi
push esi
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
cmp ecx, edi
je 0x411f8e
lea edi, [ebp - 0x70]
mov esi, dword [ebp - 0x28]
cmp eax, edi
je 0x411f41
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], esi
test eax, eax
je 0x411f4a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xb4]
cmp edx, eax
je 0x411cfd
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
jmp 0x411cfd
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb4], eax
jmp 0x411f11
mov bl, byte [ebp - 0x28]
mov byte [eax], bl
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
jmp 0x411eab
mov bl, byte [ebp - 0x28]
mov byte [eax], bl
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
jmp 0x411e73
mov bl, byte [ebp - 0x28]
mov byte [eax], bl
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
jmp 0x411ddb
test edx, edx
je 0x411fb3
cmp edx, 1
je 0x411fc2
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xb4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x30]
jmp 0x411f11
mov bl, byte [ebp - 0x28]
mov byte [eax], bl
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
jmp 0x411fb3
mov dword [esp], 0x488834
call fcn.004831f4
mov dword [esp], 0x4888ec
call fcn.004832e4
mov dword [esp], 0x4888ec
call fcn.004832e4
mov dword [esp], 0x4888ec
call fcn.004832e4
mov dword [esp], 0x4888ec
call fcn.004832e4
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Could_not_open__s_for_writing__aborting_
mov dword [esp + 4], str.Unmerge
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.004256d0
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], 3
call sub.msvcrt.dll_exit
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._s_is_not_an_archive__aborting_
mov dword [esp + 4], str.Unmerge
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.004256d0
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], 3
call sub.msvcrt.dll_exit
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Cannot_open_archive_file__s_n
mov dword [esp + 4], str.Unmerge
mov eax, dword [0x4b61c0]
mov dword [esp], eax
call fcn.00425880
mov ebx, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb0], eax
jmp 0x4815c3
mov ecx, dword [ebp - 0xb0]
call fcn.0047bd60
lea ecx, [ebp - 0x78]
call fcn.004201a0
mov dword [esp], ebx
call fcn.00462b50
lea ecx, [ebp - 0x60]
lea edi, [ebp - 0x78]
call fcn.0047bd60
mov ecx, edi
call fcn.0047bd60
lea ecx, [ebp - 0x90]
call fcn.0047bd60
mov dword [esp], ebx
call fcn.00462b50
lea ecx, [ebp - 0x30]
call fcn.0047bd60
mov ecx, dword [ebp - 0xb0]
lea edi, [ebp - 0x78]
call fcn.0047bd60
jmp 0x4815e9