Function at 0x4c0160
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov eax, dword [0x5e687c]
push ebx
push ebp
push esi
mov ebx, dword [eax + 8]
push edi
mov dword [esp + 0x10], ebx
lea ecx, [ebx + 1]
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4c01a8
test ebx, ebx
jne 0x4c01a8
push str.Enter
push str.assignindex
push 0xef
push str.C:_daily_rwsdk_driver_common_palquant.c
push 4
call fcn.0047bec0
add esp, 0x14
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4c01ce
push str.origin
push str.assignindex
push pe_nt_image_headers32
push str.C:_daily_rwsdk_driver_common_palquant.c
push 1
call fcn.0047bec0
add esp, 0x14
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x4c01f4
push str.region
push str.assignindex
push 0xf1
push str.C:_daily_rwsdk_driver_common_palquant.c
push 1
call fcn.0047bec0
add esp, 0x14
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4c026c
mov eax, dword [0x5e687c]
mov edx, dword [eax + 8]
dec edx
mov dword [eax + 8], edx
mov eax, dword [0x5e687c]
cmp dword [eax + 8], ebx
je 0x4c023f
push 0x80000005
call fcn.0047c0a0
push eax
push str.assignindex
push 0xf4
push str.C:_daily_rwsdk_driver_common_palquant.c
push 2
call fcn.0047bec0
mov ecx, dword [0x5e687c]
add esp, 0x18
mov dword [ecx + 8], ebx
mov edx, dword [0x5e687c]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4c05e9
test ebx, ebx
jne 0x4c05e9
push str.Exit
push str.assignindex
push 0xf4
jmp 0x4c05da
mov ebp, dword [esp + 0x30]
mov eax, 1
mov ecx, ebp
xor edx, edx
mov dl, byte [edi + 4]
xor ebx, ebx
shl eax, cl
xor ecx, ecx
mov bl, byte [edi + 5]
mov cl, byte [esi]
mov dword [esp + 0x30], ecx
sub ecx, edx
xor edx, edx
mov dl, byte [esi + 1]
mov dword [esp + 0x14], edx
sub edx, ebx
mov dword [esp + 0x2c], edx
xor edx, edx
mov dl, byte [esi + 2]
xor ebx, ebx
mov bl, byte [edi + 6]
mov dword [esp + 0x18], edx
sub edx, ebx
xor ebx, ebx
mov bl, byte [edi + 7]
mov dword [esp + 0x34], edx
xor edx, edx
mov dl, byte [esi + 3]
mov dword [esp + 0x1c], edx
sub edx, ebx
test ecx, ecx
mov dword [esp + 0x20], edx
jge 0x4c0573
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jge 0x4c0573
mov ebx, dword [esp + 0x34]
test ebx, ebx
jge 0x4c0573
test edx, edx
jge 0x4c0573
mov ebx, dword [esp + 0x30]
xor edx, edx
mov dl, byte [edi]
sub edx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
xor edx, edx
mov dl, byte [edi + 1]
sub edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
mov dl, byte [edi + 2]
sub edx, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
xor edx, edx
mov dl, byte [edi + 3]
sub edx, ebx
mov ebx, dword [esp + 0x30]
cmp ebx, eax
jge 0x4c0502
cmp dword [esp + 0x14], eax
jge 0x4c0502
mov ebx, dword [esp + 0x18]
cmp ebx, eax
jge 0x4c0502
cmp edx, eax
jge 0x4c0502
neg eax
cmp ecx, eax
jg 0x4c0420
cmp dword [esp + 0x2c], eax
jg 0x4c0420
cmp dword [esp + 0x34], eax
jg 0x4c0420
cmp dword [esp + 0x20], eax
jg 0x4c0420
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x4c0420
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x4c0420
test ebx, ebx
jg 0x4c0420
test edx, edx
jg 0x4c0420
test ebp, ebp
jne 0x4c0420
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x38]
mov esi, dword [esp + 0x10]
mov byte [ecx + 0x18], al
mov eax, dword [0x5e687c]
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x4c03f3
push 0x80000005
call fcn.0047c0a0
push eax
push str.assignindex
push 0x110
push str.C:_daily_rwsdk_driver_common_palquant.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c05e9
test esi, esi
jne 0x4c05e9
push str.Exit
push str.assignindex
push 0x110
jmp 0x4c05da
dec ebp
xor ebx, ebx
mov edx, ebx
mov al, byte [esi]
sar edx, 3
and dl, 1
mov ecx, ebp
shl dl, cl
add dl, al
mov eax, ebx
sar eax, 2
and al, 1
mov byte [esp + 0x2c], dl
shl al, cl
mov cl, byte [esi + 1]
mov edx, ebx
sar edx, 1
and dl, 1
add al, cl
mov ecx, ebp
shl dl, cl
mov byte [esp + 0x2d], al
mov al, byte [esi + 2]
add dl, al
mov al, bl
and al, 1
mov byte [esp + 0x2e], dl
shl al, cl
mov cl, byte [esi + 3]
lea edx, [esp + 0x2c]
add al, cl
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x28]
push ecx
push edi
mov ecx, dword [eax + ebx*4]
push ebp
push edx
push ecx
call fcn.004c0160
add esp, 0x14
inc ebx
cmp ebx, 0x10
jl 0x4c0423
mov eax, dword [0x5e687c]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x4c04d5
push 0x80000005
call fcn.0047c0a0
push eax
push str.assignindex
push 0x121
push str.C:_daily_rwsdk_driver_common_palquant.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c05e9
test esi, esi
jne 0x4c05e9
push str.Exit
push str.assignindex
push 0x121
jmp 0x4c05da
mov eax, dword [0x5e687c]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x4c0549
push 0x80000005
call fcn.0047c0a0
push eax
push str.assignindex
push 0x107
push str.C:_daily_rwsdk_driver_common_palquant.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c05e9
test esi, esi
jne 0x4c05e9
push str.Exit
push str.assignindex
push 0x107
jmp 0x4c05da
mov eax, dword [0x5e687c]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x4c05ba
push 0x80000005
call fcn.0047c0a0
push eax
push str.assignindex
push 0xfe
push str.C:_daily_rwsdk_driver_common_palquant.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c05e9
test esi, esi
jne 0x4c05e9
push str.Exit
push str.assignindex
push 0xfe
push str.C:_daily_rwsdk_driver_common_palquant.c
push 4
call fcn.0047bec0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret