Function at 0x401b3b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov dword [ebp - 4], 1
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x428], 0
cmp dword [ebp + 8], 2
jl 0x401b9b
cmp dword [ebp + 8], 3
jge 0x401bd2
push 0x40d128
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00402670
add esp, 8
test eax, eax
jne 0x401b9b
push 0x40d12c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.00402670
add esp, 8
test eax, eax
je 0x401bd2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str.Usage:__s___full_literal___rbtfile___bbtfile__n
call fcn.00402747
add esp, 8
push str.___f_ull______include_row_checksums__header_row_below_main_data_n
call fcn.00402747
add esp, 4
push str.___l_iteral___translate_all_RBT_bytes_to_BBT_n
call fcn.00402747
add esp, 4
push 0
call fcn.00402904
add esp, 4
push 0x40d1d4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00402670
add esp, 8
test eax, eax
je 0x401bff
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x438], 1
jmp 0x401c2a
push 0x40d1d8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00402670
add esp, 8
test eax, eax
je 0x401c2a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], 1
mov eax, dword [ebp - 4]
add eax, 2
cmp dword [ebp + 8], eax
jge 0x401c8d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x30c]
push ecx
call fcn.00402340
add esp, 8
push 0x2e
lea edx, [ebp - 0x30c]
push edx
call fcn.004028b0
add esp, 8
test eax, eax
je 0x401c77
push 0x2e
lea eax, [ebp - 0x30c]
push eax
call fcn.004028b0
add esp, 8
mov byte [eax], 0
push str..bbt
lea ecx, [ebp - 0x30c]
push ecx
call fcn.00402350
add esp, 8
jmp 0x401ca7
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4 + 4]
push ecx
lea edx, [ebp - 0x30c]
push edx
call fcn.00402340
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00402340
add esp, 8
push 0x2e
lea ecx, [ebp - 0x41c]
push ecx
call fcn.004028b0
add esp, 8
test eax, eax
jne 0x401ce9
push str..rbt
lea edx, [ebp - 0x41c]
push edx
call fcn.00402350
add esp, 8
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x438]
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x424]
push eax
call entry0
add esp, 0x1c
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x4020d1
lea ecx, [ebp - 0x208]
push ecx
call fcn.004022c0
add esp, 4
mov dword [ebp - 0x434], eax
lea edx, [ebp - 0x44c]
push edx
call fcn.004022c0
add esp, 4
mov dword [ebp - 0x10], eax
push 0x40d1ec
lea eax, [ebp - 0x30c]
push eax
call fcn.00402798
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401d92
lea ecx, [ebp - 0x30c]
push ecx
push str._nCant_open__s_for_write._n
call fcn.00402747
add esp, 8
jmp 0x4020c2
mov edx, dword [ebp - 0x430]
and edx, 0x80000007
jns 0x401da5
dec edx
or edx, 0xfffffff8
inc edx
mov eax, 8
sub eax, edx
and eax, 0x80000007
jns 0x401db8
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x454]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x31c], eax
xor ecx, ecx
cmp dword [ebp - 0x434], 0
setne cl
mov edx, dword [ebp - 0x424]
add edx, ecx
xor eax, eax
cmp dword [ebp - 0x10], 0
setne al
add edx, eax
push edx
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004019df
add esp, 8
mov edx, dword [ebp - 0x31c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004019df
add esp, 8
mov dword [ebp - 0x450], 0
jmp 0x401e33
mov ecx, dword [ebp - 0x450]
add ecx, 1
mov dword [ebp - 0x450], ecx
mov edx, dword [ebp - 0x450]
cmp edx, dword [ebp - 0x424]
jge 0x401efa
mov dword [ebp - 8], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x318], 0
jmp 0x401e7a
mov ecx, dword [ebp - 0x318]
add ecx, 1
mov dword [ebp - 0x318], ecx
mov edx, dword [ebp - 0x318]
cmp edx, dword [ebp - 0x430]
jge 0x401ef5
mov eax, dword [ebp - 0x450]
imul eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x310]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x401eb1
mov eax, dword [ebp - 8]
or al, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp ecx, 7
jge 0x401ecc
mov eax, dword [ebp - 8]
shl eax, 1
mov dword [ebp - 8], eax
jmp 0x401ef0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
and edx, 0xff
push edx
call fcn.00402823
add esp, 8
mov dword [ebp - 8], 0
jmp 0x401e6b
jmp 0x401e24
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x10], 0
je 0x401fd5
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x42c], 0
jmp 0x401f32
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
cmp edx, dword [ebp - 0x10]
jge 0x401fac
mov eax, dword [ebp - 0x42c]
movsx ecx, byte [ebp + eax - 0x44c]
cmp ecx, 0x31
jne 0x401f59
mov edx, dword [ebp - 8]
or edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp eax, 7
jge 0x401f74
mov edx, dword [ebp - 8]
shl edx, 1
mov dword [ebp - 8], edx
jmp 0x401fa7
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
and ecx, 0xff
push ecx
call fcn.00402823
add esp, 8
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x420]
sub edx, 1
mov dword [ebp - 0x420], edx
jmp 0x401f23
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x420]
sub ecx, 1
mov dword [ebp - 0x420], ecx
test eax, eax
je 0x401fd5
mov edx, dword [ebp - 0xc]
push edx
push 0
call fcn.00402823
add esp, 8
jmp 0x401fac
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x434], 0
je 0x4020b6
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x42c], 0
jmp 0x402010
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
cmp edx, dword [ebp - 0x434]
jge 0x40208d
mov eax, dword [ebp - 0x42c]
movsx ecx, byte [ebp + eax - 0x208]
cmp ecx, 0x31
jne 0x40203a
mov edx, dword [ebp - 8]
or edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp eax, 7
jge 0x402055
mov edx, dword [ebp - 8]
shl edx, 1
mov dword [ebp - 8], edx
jmp 0x402088
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
and ecx, 0xff
push ecx
call fcn.00402823
add esp, 8
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x420]
sub edx, 1
mov dword [ebp - 0x420], edx
jmp 0x402001
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x420]
sub ecx, 1
mov dword [ebp - 0x420], ecx
test eax, eax
je 0x4020b6
mov edx, dword [ebp - 0xc]
push edx
push 0
call fcn.00402823
add esp, 8
jmp 0x40208d
mov eax, dword [ebp - 0xc]
push eax
call fcn.004020d7
add esp, 4
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.00402847
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret