Function at 0x42d420
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x40]
test eax, eax
mov ebx, dword [esi + 0x3c]
je 0x42d440
sub ebx, eax
jmp 0x42d445
mov eax, dword [esi + 0x38]
sub ebx, eax
lea eax, [ebx + 4]
cmp eax, dword [esi + 0xec]
ja 0x42d8a7
movsx edx, byte [esi + 0x154]
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x42d467
jmp dword [eax*4 + 0x4e5310]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42d76d
mov byte [eax + ebx], 0xd
mov eax, dword [esi + 0x40]
mov byte [eax + ebx + 1], 0xa
add ebx, 2
jmp case.0x42d467.5
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42d781
mov byte [eax + ebx], 0xd
inc ebx
jmp case.0x42d467.5
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42d78b
mov byte [eax + ebx], 0xa
inc ebx
jmp case.0x42d467.5
mov edx, dword [esi + 0x40]
test edx, edx
je 0x42d795
mov eax, dword [esi + 0x3c]
sub eax, edx
add eax, 0xfffffffe
mov byte [edx], al
mov edx, dword [esi + 0x40]
shr eax, 8
mov byte [edx + 1], al
mov eax, ebx
and eax, 0x80000001
jge 0x42d4e5
sub eax, 1
or eax, 0xfffffffe
inc eax
test eax, eax
je case.0x42d467.5
mov eax, dword [esi + 0x40]
mov byte [eax + ebx], 0
inc ebx
jmp case.0x42d467.5
cmp dword [esi + 0x138], 0xb
jne 0x42d604
cmp edx, 5
je 0x42d515
cmp edx, 4
jne 0x42d604
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x42d526
mov edi, dword [esi + 0x3c]
sub edi, ecx
add edi, 0xfffffffc
jmp 0x42d52c
mov ecx, dword [esi + 0x38]
lea edi, [ebx - 4]
movzx edx, byte [esi + 0x172]
test dl, 0x20
je 0x42d54a
mov eax, edi
and edx, 0xffffffdf
neg eax
mov byte [esi + 0x172], dl
mov dword [ebp - 0x1c], eax
jmp 0x42d54d
mov dword [ebp - 0x1c], edi
test byte [esi + 0x16d], 0x20
je 0x42d575
lea eax, [ebp - 0x19]
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [ebp - 0x1a]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 0x1b]
mov byte [ecx + 2], dl
movzx edx, byte [ebp - 0x1c]
mov byte [ecx + 3], dl
jmp 0x42d592
movzx edx, byte [ebp - 0x1b]
movzx eax, byte [ebp - 0x1c]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 0x1a]
mov byte [ecx], al
lea eax, [ebp - 0x19]
mov byte [ecx + 2], dl
movzx edx, byte [eax]
mov byte [ecx + 3], dl
cmp dword [esi + 0x14c], 0
je 0x42d5a2
neg edi
mov dword [ebp - 0x1c], edi
jmp 0x42d5a5
mov dword [ebp - 0x1c], edi
test byte [esi + 0x16d], 0x20
je 0x42d5d6
mov edi, dword [esi + 0x3c]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0x1a]
mov byte [edi], al
mov ecx, dword [esi + 0x3c]
movzx eax, byte [ebp - 0x1b]
mov byte [ecx + 1], dl
mov edi, dword [esi + 0x3c]
movzx edx, byte [ebp - 0x1c]
mov byte [edi + 2], al
mov ecx, dword [esi + 0x3c]
mov byte [ecx + 3], dl
jmp 0x42d5fc
mov edi, dword [esi + 0x3c]
movzx edx, byte [ebp - 0x1c]
movzx ecx, byte [ebp - 0x1b]
mov byte [edi], dl
mov edi, dword [esi + 0x3c]
movzx edx, byte [ebp - 0x1a]
movzx eax, byte [eax]
mov byte [edi + 1], cl
mov ecx, dword [esi + 0x3c]
mov byte [ecx + 2], dl
mov edx, dword [esi + 0x3c]
mov byte [edx + 3], al
add ebx, 4
jmp case.0x42d467.5
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x42d7cb
mov edi, dword [esi + 0x3c]
sub edi, ecx
add edi, 0xfffffffc
mov eax, edi
and eax, 0xff
mov dword [ebp - 0x10], edi
test byte [esi + 0x16d], 0x20
je 0x42d661
mov edx, edi
shr edx, 0x18
mov byte [ecx], dl
mov ecx, edi
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 0x40]
shr ecx, 0x10
movzx ecx, cl
mov byte [edx + 1], cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
shr edi, 8
mov edx, edi
and edx, 0xff
mov byte [ecx + 2], dl
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x18], edx
mov byte [edi + 3], al
jmp 0x42d68e
movzx eax, byte [ebp - 0x10]
mov byte [ecx], al
mov edi, dword [esi + 0x40]
movzx edx, byte [ebp - 0xf]
mov dword [ebp - 0x18], edx
mov byte [edi + 1], dl
mov edx, dword [esi + 0x40]
movzx ecx, byte [ebp - 0xe]
mov dword [ebp - 0x1c], ecx
mov byte [edx + 2], cl
mov ecx, dword [esi + 0x40]
movzx edx, byte [ebp - 0xd]
mov dword [ebp - 0x14], edx
mov byte [ecx + 3], dl
test byte [esi + 0x16d], 0x20
je 0x42d6b9
mov edi, dword [esi + 0x3c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [edi], dl
mov edx, dword [esi + 0x3c]
mov byte [edx + 1], cl
mov ecx, dword [esi + 0x3c]
mov edx, dword [ebp - 0x18]
mov byte [ecx + 2], dl
mov edi, dword [esi + 0x3c]
mov byte [edi + 3], al
jmp 0x42d6d9
mov edi, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x1c]
mov byte [edi], al
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp - 0x18]
mov byte [edx + 1], al
mov edi, dword [esi + 0x3c]
mov eax, dword [ebp - 0x14]
mov byte [edi + 2], cl
mov edx, dword [esi + 0x3c]
mov byte [edx + 3], al
add ebx, 4
jmp case.0x42d467.5
mov eax, dword [esi + 0xf8]
cmp ebx, eax
jae case.0x42d467.5
sub eax, ebx
push eax
push 0
push dword [esi + 0x3c]
call fcn.004c9070
add esp, 0xc
mov ebx, dword [esi + 0xf8]
jmp case.0x42d467.5
push 0x28b
push str.for_put.c
push 2
push 8
call fcn.00413d20
add esp, 0x10
mov edx, dword [esi + 0x40]
test edx, edx
je 0x42d896
mov eax, esi
mov ecx, ebx
call fcn.0042d97c
and byte [esi + 0x16c], 0xbf
cmp eax, 0xffffffff
je 0x42d878
test byte [esi + 0x16d], 8
je 0x42d75e
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x42d853
and byte [esi + 0x16d], 0xf7
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0xd
mov edx, dword [esi + 0x38]
mov byte [edx + ebx + 1], 0xa
add ebx, 2
jmp case.0x42d467.5
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0xd
inc ebx
jmp case.0x42d467.5
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0xa
inc ebx
jmp case.0x42d467.5
mov edx, dword [esi + 0x38]
lea eax, [ebx - 2]
mov byte [edx], al
mov ecx, dword [esi + 0x38]
shr eax, 8
mov byte [ecx + 1], al
mov eax, ebx
and eax, 0x80000001
jge 0x42d7b6
sub eax, 1
or eax, 0xfffffffe
inc eax
test eax, eax
je case.0x42d467.5
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0
inc ebx
jmp case.0x42d467.5
lea edi, [ebx - 4]
mov dword [ebp - 0x10], edi
mov eax, edi
and eax, 0xff
test byte [esi + 0x16d], 0x20
je 0x42d81e
mov ecx, dword [esi + 0x38]
mov edx, edi
shr edx, 0x18
mov dword [ebp - 0x14], edx
mov byte [ecx], dl
mov ecx, edi
mov edx, dword [esi + 0x38]
shr ecx, 0x10
movzx ecx, cl
mov byte [edx + 1], cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x38]
shr edi, 8
mov edx, edi
and edx, 0xff
mov byte [ecx + 2], dl
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x18], edx
mov byte [edi + 3], al
jmp 0x42d68e
mov edi, dword [esi + 0x38]
movzx eax, byte [ebp - 0x10]
movzx edx, byte [ebp - 0xf]
mov byte [edi], al
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x18], edx
mov byte [ecx + 1], dl
mov edx, dword [esi + 0x38]
movzx ecx, byte [ebp - 0xe]
mov dword [ebp - 0x1c], ecx
mov byte [edx + 2], cl
mov edi, dword [esi + 0x38]
movzx edx, byte [ebp - 0xd]
mov dword [ebp - 0x14], edx
mov byte [edi + 3], dl
jmp 0x42d68e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xe8], eax
mov eax, 0x26
and byte [esi + 0x16d], 0xf7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, ebx
mov edx, dword [esi + 0x38]
call fcn.0042d97c
jmp 0x42d72a
push 0x200
push esi
call fcn.00430f50
add esp, 8
test eax, eax
je 0x42d454
push 4
push esi
call fcn.00430f50
add esp, 8
test eax, eax
je 0x42d454
cmp ebx, dword [esi + 0xec]
ja 0x42d8e8
movsx edx, byte [esi + 0x154]
cmp edx, 1
je 0x42d45b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42d948
test byte [eax + 0x44], 2
je 0x42d921
mov edx, 0x42
mov dword [eax + 0x38], edx
mov eax, dword [esi + 0x18]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x64]
test eax, eax
je 0x42d912
xor edx, edx
mov dword [eax + 4], edx
mov dword [esi + 0x64], edx
mov eax, 0x42
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x42
push eax
movzx edx, byte [esi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push esi
call fcn.00435d00
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push esi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00411c20
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret