Function at 0x402300
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1228
call fcn.00440990
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0x1224], edx
push 0x1000
mov dword [ebp - 0x1228], ebx
call fcn.00429ee5
push 0x40
push ebx
mov dword [ebp - 0x1210], eax
call fcn.00420790
push 0x40
mov byte [eax], 0
inc eax
push eax
mov dword [ebp - 0x1218], eax
call fcn.00420790
add esp, 0x14
mov byte [eax], 0
inc eax
mov dword [ebp - 0x1220], eax
lea edi, [eax - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402361
mov ax, word [0x448b78]
push 0x448a70
push ebx
mov word [edi], ax
call fcn.00422887
add esp, 8
mov dword [ebp - 0x1214], eax
test eax, eax
jne 0x4023cc
push ebx
lea eax, [ebp - 0x120c]
push str.ReplaceLine___open___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x120c]
push 0x10
push str.Warning:
push eax
push dword [0x4580e8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.004235ce
lea edx, [ebp - 0x20c]
add esp, 0x14
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4023f0
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402400
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402420
mov eax, dword [str._akdteldb.dhd]
mov dword [ecx], eax
mov eax, dword [0x448ba4]
mov dword [ecx + 4], eax
mov eax, dword [0x448ba8]
mov dword [ecx + 8], eax
mov ax, word [0x448bac]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x108]
push 0x448a74
push eax
call fcn.00422887
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40249c
push dword [ebp - 0x1214]
call fcn.00422ada
add esp, 4
push 0x10
push str.Warning:
push str.ReplaceLine___open_out
push dword [0x4580e8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1218]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4024a5
mov esi, dword [ebp - 0x1214]
sub edx, ecx
push esi
mov dword [ebp - 0x121c], edx
call fcn.00422f1c
add esp, 4
test eax, eax
jne 0x40259f
mov edi, dword [ebp - 0x1210]
push esi
push 0x1000
push edi
call fcn.00425f5f
add esp, 0xc
test eax, eax
je 0x40259f
mov esi, edi
nop word [eax + eax]
mov al, byte [esi]
cmp al, 0x20
je 0x4024fa
cmp al, 9
jne 0x4024fd
inc esi
jmp 0x4024f0
push dword [ebp - 0x121c]
push dword [ebp - 0x1218]
push esi
call fcn.00425d55
add esp, 0xc
test eax, eax
jne 0x4025e3
mov ecx, dword [ebp - 0x1220]
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x402522
cmp dword [ebp - 0x1224], 0
je 0x4025e3
mov ecx, dword [ebp - 0x1210]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402547
sub esi, edx
xor edi, edi
test esi, esi
jle 0x402586
cmp byte [edi + ecx], 0x5c
jne 0x40256d
push ebx
push 0x5c
call fcn.00422ee8
mov ecx, dword [ebp - 0x1210]
add esp, 8
movsx eax, byte [edi + ecx]
push ebx
push eax
call fcn.00422ee8
mov ecx, dword [ebp - 0x1210]
inc edi
add esp, 8
cmp edi, esi
jl 0x402556
mov edi, ecx
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00422f1c
add esp, 4
test eax, eax
je 0x4024d1
push esi
call fcn.00422ada
push ebx
call fcn.00422ada
push dword [ebp - 0x1210]
call fcn.00427f49
mov esi, dword [ebp - 0x1228]
push esi
call fcn.00422d12
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00425f6a
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push ebx
push edi
call fcn.00427bda
add esp, 8
jmp 0x402588