Function at 0x439a70
Capabilities:
Clear file content

Disassembly:
movsx edx, byte [esi + 0x146]
cmp edx, 1
je 0x4385c2
movzx eax, byte [esi + 0x15d]
test al, 0x40
jne 0x4385c2
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x43827a
movzx eax, byte [eax + 0x1e]
test eax, eax
je 0x43827a
mov eax, dword [esi + 0x128]
cmp eax, 1
je 0x4385c2
mov eax, dword [0x4caa54]
test eax, eax
je 0x43827a
movzx eax, byte [esi + 0x160]
test eax, 0x80
jne 0x438259
mov eax, dword [esi + 0x130]
jmp 0x438268
mov eax, dword [esi + 0x130]
cmp eax, 0xfffffffa
je 0x4385c2
cmp eax, 1
je 0x4385c2
cmp eax, 2
je 0x4385c2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x439512
mov byte [eax + edi], 0xd
mov eax, dword [esi + 0x40]
mov byte [eax + edi + 1], 0xa
movsx edx, byte [esi + 0x146]
add edi, 2
jmp 0x4385c2
mov edx, dword [esi + 0x38]
mov byte [edx + edi], 0xd
mov ecx, dword [esi + 0x38]
mov byte [ecx + edi + 1], 0xa
movsx edx, byte [esi + 0x146]
add edi, 2
jmp 0x4385c2
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
test eax, eax
je 0x439a90
sub ebx, eax
jmp 0x439a95
mov eax, dword [esi + 0x38]
sub ebx, eax
lea eax, [ebx + 4]
cmp eax, dword [esi + 0xdc]
ja 0x439f56
movsx edx, byte [esi + 0x144]
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x439abe
mov eax, dword [edx*4 + 0x4b8fe4]
jmp eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x439e49
mov byte [eax + ebx], 0xd
add ebx, 1
jmp case.0x439abe.6
mov eax, dword [esi + 0x40]
test eax, eax
je 0x439e58
mov byte [eax + ebx], 0xa
add ebx, 1
jmp case.0x439abe.6
mov edx, dword [esi + 0x40]
test edx, edx
je 0x439e67
mov eax, edx
neg eax
add eax, dword [esi + 0x3c]
shl eax, 0x10
add eax, 0xfffe0000
shr eax, 0x10
mov byte [edx], al
mov edx, dword [esi + 0x40]
shr eax, 8
mov byte [edx + 1], al
mov ecx, ebx
and ecx, 1
je case.0x439abe.6
mov eax, dword [esi + 0x40]
mov byte [eax + ebx], 0
add ebx, 1
jmp case.0x439abe.6
mov eax, dword [esi + 0x128]
cmp eax, 0xb
jne 0x439c9f
cmp edx, 5
je 0x439b6c
cmp edx, 4
jne 0x439c9f
mov eax, dword [esi + 0x40]
test eax, eax
je 0x439b83
mov edx, dword [esi + 0x3c]
sub edx, eax
add edx, 0xfffffffc
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edx
jmp 0x439b8f
lea eax, [ebx - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x38]
movzx edx, byte [esi + 0x162]
test dl, 0x20
je 0x439bae
and edx, 0xffffffdf
mov byte [esi + 0x162], dl
mov edx, dword [ebp - 0x14]
neg edx
mov dword [ebp - 0x20], edx
jmp 0x439bb4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
movzx edx, byte [esi + 0x15d]
test dl, 0x20
je 0x439bec
lea edi, [ebp - 0x1d]
movzx edx, byte [edi]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x1e]
mov dword [ebp - 0x1c], ecx
mov byte [eax], dl
movzx edx, byte [ecx]
mov byte [eax + 1], dl
lea edx, [ebp - 0x1f]
mov dword [ebp - 0x10], edx
movzx edx, byte [edx]
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x20]
mov byte [eax + 3], dl
jmp 0x439c16
movzx edx, byte [ebp - 0x20]
lea edi, [ebp - 0x1f]
movzx ecx, byte [edi]
mov dword [ebp - 0x10], edi
mov byte [eax], dl
mov byte [eax + 1], cl
lea edx, [ebp - 0x1e]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edx]
mov byte [eax + 2], dl
lea edx, [ebp - 0x1d]
mov dword [ebp - 0x18], edx
movzx edx, byte [edx]
mov byte [eax + 3], dl
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x439c2a
mov eax, dword [ebp - 0x14]
neg eax
mov dword [ebp - 0x20], eax
jmp 0x439c30
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
movzx eax, byte [esi + 0x15d]
test al, 0x20
je 0x439c6a
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi]
mov edx, dword [esi + 0x3c]
mov byte [edx], al
movzx eax, byte [ecx]
mov edx, dword [esi + 0x3c]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, dword [esi + 0x3c]
mov byte [edx + 2], al
movzx eax, byte [ebp - 0x20]
mov edx, dword [esi + 0x3c]
mov byte [edx + 3], al
jmp 0x439c97
movzx eax, byte [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edi, dword [esi + 0x3c]
movzx ecx, byte [edx]
mov byte [edi], al
mov eax, dword [esi + 0x3c]
mov byte [eax + 1], cl
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
mov edx, dword [esi + 0x3c]
mov byte [edx + 2], al
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
mov byte [edx + 3], al
add ebx, 4
jmp case.0x439abe.6
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x439e9c
mov edi, dword [esi + 0x3c]
movzx edx, byte [esi + 0x15d]
sub edi, ecx
add edi, 0xfffffffc
mov eax, edi
and eax, 0xff
test dl, 0x20
mov dword [ebp - 0x20], edi
je 0x439cff
mov edx, edi
shr edx, 0x18
mov dword [ebp - 0x18], edx
mov byte [ecx], dl
mov edx, dword [esi + 0x40]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x14], ecx
mov byte [edx + 1], cl
mov ecx, dword [esi + 0x40]
shr edi, 8
mov edx, edi
and edx, 0xff
mov dword [ebp - 0x10], edx
mov byte [ecx + 2], dl
mov edi, dword [esi + 0x40]
mov byte [edi + 3], al
jmp 0x439d2c
movzx eax, byte [ebp - 0x20]
movzx edx, byte [ebp - 0x1f]
mov dword [ebp - 0x10], edx
mov byte [ecx], al
mov edi, dword [esi + 0x40]
movzx ecx, byte [ebp - 0x1e]
mov dword [ebp - 0x14], ecx
mov byte [edi + 1], dl
mov edx, dword [esi + 0x40]
mov byte [edx + 2], cl
movzx edx, byte [ebp - 0x1d]
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x18], edx
mov byte [ecx + 3], dl
movzx edx, byte [esi + 0x15d]
test dl, 0x20
je 0x439d5a
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x3c]
mov byte [edi], dl
mov edx, dword [esi + 0x3c]
mov byte [edx + 1], cl
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
mov byte [ecx + 2], dl
mov edx, dword [esi + 0x3c]
mov byte [edx + 3], al
jmp 0x439d7a
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x3c]
mov byte [edi], al
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x3c]
mov byte [edx + 1], al
mov eax, dword [esi + 0x3c]
mov byte [eax + 2], cl
mov eax, dword [ebp - 0x18]
mov edx, dword [esi + 0x3c]
mov byte [edx + 3], al
add ebx, 4
jmp case.0x439abe.6
mov eax, dword [esi + 0xe4]
cmp ebx, eax
jae case.0x439abe.6
sub eax, ebx
push eax
push 0
push dword [esi + 0x3c]
call fcn.004a3ab8
add esp, 0xc
mov ebx, dword [esi + 0xe4]
jmp case.0x439abe.6
push 0x23d
push str.for_put.c
push 2
push 8
call fcn.00434a44
add esp, 0x10
mov edx, dword [esi + 0x40]
test edx, edx
je 0x439f45
mov eax, esi
mov ecx, ebx
call fcn.00439654
and byte [esi + 0x15c], 0xbf
cmp eax, 0xffffffff
je 0x439f27
movzx eax, byte [esi + 0x15d]
test al, 8
je 0x439e23
push dword [esi + 0xd4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x439dfa
xor eax, eax
jmp 0x439e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov eax, 0x26
and byte [esi + 0x15d], 0xf7
test eax, eax
je 0x439e23
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0xd
add ebx, 1
jmp case.0x439abe.6
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0xa
add ebx, 1
jmp case.0x439abe.6
mov edx, dword [esi + 0x38]
mov eax, ebx
shl eax, 0x10
add eax, 0xfffe0000
shr eax, 0x10
mov byte [edx], al
mov ecx, dword [esi + 0x38]
shr eax, 8
mov byte [ecx + 1], al
mov edi, ebx
and edi, 1
je case.0x439abe.6
mov eax, dword [esi + 0x38]
mov byte [eax + ebx], 0
add ebx, 1
jmp case.0x439abe.6
movzx ecx, byte [esi + 0x15d]
lea edi, [ebx - 4]
mov dword [ebp - 0x20], edi
mov eax, edi
and eax, 0xff
test cl, 0x20
je 0x439ef2
mov ecx, dword [esi + 0x38]
mov edx, edi
shr edx, 0x18
mov dword [ebp - 0x18], edx
mov byte [ecx], dl
mov edx, dword [esi + 0x38]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x14], ecx
mov byte [edx + 1], cl
mov ecx, dword [esi + 0x38]
shr edi, 8
mov edx, edi
and edx, 0xff
mov dword [ebp - 0x10], edx
mov byte [ecx + 2], dl
mov edi, dword [esi + 0x38]
mov byte [edi + 3], al
jmp 0x439d2c
movzx eax, byte [ebp - 0x20]
movzx edx, byte [ebp - 0x1f]
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x10], edx
mov byte [edi], al
mov ecx, dword [esi + 0x38]
mov byte [ecx + 1], dl
movzx ecx, byte [ebp - 0x1e]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x14], ecx
mov byte [edx + 2], cl
movzx edx, byte [ebp - 0x1d]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x18], edx
mov byte [ecx + 3], dl
jmp 0x439d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [esi + 0xd8], eax
mov esi, dword [ebp - 4]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x38]
mov eax, esi
mov ecx, ebx
call fcn.00439654
jmp 0x439dcb
push 0x200
push esi
call fcn.0043b4a8
add esp, 8
test eax, eax
je 0x439aa4
push 4
push esi
call fcn.0043b4a8
add esp, 8
test eax, eax
je 0x439aa4
cmp ebx, dword [esi + 0xdc]
ja 0x439f97
movsx edx, byte [esi + 0x144]
cmp edx, 1
je 0x439aab
mov edx, dword [esi + 0x18]
test edx, edx
je 0x43a022
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x439fd6
mov eax, 0x42
mov dword [edx + 0x30], eax
mov edx, dword [esi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [esi + 0x64]
test eax, eax
je 0x439fc7
xor edx, edx
mov dword [eax + 4], edx
mov dword [esi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov eax, 0x42
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0x15c]
mov edi, eax
and edi, 1
test al, 2
mov edx, 2
jne 0x439ff0
mov edx, 0
test al, 4
mov ecx, 4
mov ebx, 0x42
push ebx
jne 0x43a004
mov ecx, 0
or edi, edx
or edi, ecx
push ebx
push edi
push 0xffffffffffffffff
push esi
call fcn.00435ec8
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push esi
mov eax, 0x42
push eax
push eax
push 1
call fcn.004342fc
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret