Function at 0x499bd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, 0x52
jne 0x499c2c
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
cmp al, 0x45
jne 0x499c2c
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
cmp al, 0x44
jne 0x499c2c
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 3]
cmp al, 0x42
jne 0x499c2c
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 4]
cmp al, 0x49
jne 0x499c2c
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 5]
cmp al, 0x4e
jne 0x499c2c
jmp 0x499c30
xor eax, eax
jmp 0x499c33
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x499c9a
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x499c78
push dword [0x576dcc]
push 0x11
push dword [0x5813d0]
call fcn.004561ef
push eax
push 3
push dword [0x5813c0]
call fcn.004561ef
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fa34
jmp 0x499c9a
push 0
push str.Error:_Not_a_Redbin_file_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.00425471
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x578398], eax
mov eax, dword [ebp - 0xc]
add eax, 7
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and eax, 0xff
and eax, 1
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and eax, 0xff
and eax, 2
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and eax, 0xff
and eax, 4
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0
je 0x499d22
push 0
push dword [ebp - 0xc]
call fcn.0042f068
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0
je 0x499da9
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x499d77
push dword [ebp - 0x14]
call fcn.00499009
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
shl eax, 2
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
xchg edx, eax
add eax, edx
pop edx
xchg edx, eax
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x499deb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
xchg edx, eax
sub eax, edx
push eax
push 0x10
pop eax
bsr eax, eax
pop edx
xchg edx, eax
mov cl, dl
sar eax, cl
mov dword [0x57839c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [0x57837c], eax
jmp 0x499e14
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0049a56a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jb 0x499e00
mov eax, 0
mov dword [0x578398], 0
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x499e52
push dword [ebp + 0xc]
call fcn.0044134c
mov edx, eax
mov eax, dword [0x57839c]
shl eax, 4
add eax, edx
mov dword [0x578394], eax
mov eax, dword [0x578394]
leave
ret 0xc