Function at 0x49db2c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0xea3
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 0x52
jne 0x49db8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
cmp al, 0x45
jne 0x49db8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 2]
cmp al, 0x44
jne 0x49db8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 3]
cmp al, 0x42
jne 0x49db8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 4]
cmp al, 0x49
jne 0x49db8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 5]
cmp al, 0x4e
jne 0x49db8d
jmp 0x49db91
xor eax, eax
jmp 0x49db94
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x49dc01
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x49dbd9
push dword [0x624630]
push 0x11
push dword [0x62ec84]
call fcn.00458331
push eax
push 3
push dword [0x62ec74]
call fcn.00458331
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fd46
jmp 0x49dc01
push 0
push str.Error:_Not_a_Redbin_file_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004258fd
push 0
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x625c14], eax
mov eax, dword [ebp - 0x10]
add eax, 7
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
and eax, 0xff
and eax, 1
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
and eax, 0xff
and eax, 2
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
and eax, 0xff
and eax, 4
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x24]
cmp eax, 0
je 0x49dc9b
push 0
push dword [ebp - 0x10]
call fcn.0042f301
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
cmp eax, 0
je 0x49dd22
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x49dcf0
push dword [ebp - 0x1c]
call fcn.0049cf22
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
shl eax, 2
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
xchg edx, eax
add eax, edx
pop edx
xchg edx, eax
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x49dd64
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x3c]
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 [0x625c18], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [0x625bf8], eax
jmp 0x49dd8d
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0049e4ff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jb 0x49dd79
mov eax, dword [ebp - 0x24]
cmp eax, 0
je 0x49dda9
push dword [ebp - 0x18]
call fcn.0042e818
mov eax, 0
mov dword [0x625c14], 0
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x49dddd
push dword [ebp + 0xc]
call fcn.00442bf2
mov edx, eax
mov eax, dword [0x625c18]
shl eax, 4
add eax, edx
mov dword [0x625c10], eax
mov eax, dword [0x625c10]
leave
ret 0xc