Function at 0x100563a1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov esi, eax
mov ebx, dword [esi + 0xfc]
mov edi, dword [esi + 0xc0]
movsx eax, byte [esi + 0x11c]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x100562f3
mov eax, dword [eax*4 + 0x100c01f4]
jmp eax
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100565a6
xor eax, eax
and byte [esi + 0x12c], 0xef
test eax, eax
je 0x10056328
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x18], 0xd
lea eax, [ebp - 0x18]
push 1
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056588
jmp 0x10056531
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100565da
xor eax, eax
and byte [esi + 0x12c], 0xef
test eax, eax
je 0x1005637c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x18], 0xd
lea eax, [ebp - 0x18]
push 2
mov byte [ebp - 0x17], 0xa
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100565bc
jmp 0x10056531
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100565f0
xor eax, eax
and byte [esi + 0x12c], 0xef
test eax, eax
je 0x10056531
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 4
mov edx, dword [esi + 0x38]
mov eax, ebx
shl eax, 0x10
add eax, 0x20000
shr eax, 0x10
mov byte [edx], al
mov ecx, dword [esi + 0x38]
shr eax, 8
mov byte [ecx + 1], al
push dword [esi + 0x38]
push esi
and byte [esi + 0x12c], 0xef
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056642
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056624
and ebx, 1
je 0x10056531
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 1
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056606
jmp 0x10056531
and byte [esi + 0x12c], 0xef
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005669c
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005667e
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056660
jmp 0x10056531
movzx eax, byte [esi + 0x12b]
and byte [esi + 0x12c], 0xef
test al, 4
je 0x100564d9
movzx eax, byte [esi + 0x128]
test al, 1
je 0x100564d9
movsx eax, byte [esi + 0x11d]
cmp eax, 2
je 0x100566ba
push ebx
push dword [esi + 0x80]
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10056715
cmp ebx, edi
jge 0x10056531
sub edi, ebx
push edi
push 0
push dword [esi + 0x38]
call fcn.1007f474
push edi
push dword [esi + 0x38]
push esi
call fcn.1002ccf0
add esp, 0x18
cmp eax, 0xffffffff
je 0x100566f7
jmp 0x10056531
push 0x1195
push str.for_wseq.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
movzx eax, byte [esi + 0x12d]
test al, 2
je 0x10056579
push dword [esi + 0xb4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10056550
xor eax, eax
jmp 0x10056561
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xb8], eax
mov eax, 0x26
and byte [esi + 0x12d], 0xfd
test eax, eax
je 0x10056579
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xb8], eax
mov eax, 0x26
jmp 0x10056310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xb8], eax
mov eax, 0x26
jmp 0x10056364
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xb8], eax
mov eax, 0x26
jmp 0x100563bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x18], 0x20
lea eax, [ebp - 0x18]
add edi, 0xffffffff
push 1
push eax
push esi
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100564d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0xb8], eax
mov esi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret