Function at 0x4bb4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov eax, dword [0x5e687c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
lea edx, [ecx + 1]
mov dword [eax + 8], edx
mov eax, dword [0x5e687c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4bb503
test ecx, ecx
jne 0x4bb503
push str.Enter
push str.RwImageResample
push 0xeb
push str.c:_daily_rwsdk_src_baresamp.c
push 4
call fcn.0047bec0
add esp, 0x14
push esi
mov esi, dword [esp + 0x60]
test esi, esi
push edi
jne 0x4bb52b
push str.dstImage
push str.RwImageResample
push 0xed
push str.c:_daily_rwsdk_src_baresamp.c
push 1
call fcn.0047bec0
add esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x70]
test ebp, ebp
jne 0x4bb553
push str.srcImage
push str.RwImageResample
push 0xee
push str.c:_daily_rwsdk_src_baresamp.c
push 1
call fcn.0047bec0
add esp, 0x14
push ebp
call fcn.00471d10
add esp, 4
cmp eax, 0x20
jne 0x4bb56f
push esi
call fcn.00471d10
add esp, 4
cmp eax, 0x20
je 0x4bb58d
push str._RwImageGetDepth_srcImage___32____RwImageGetDepth_dstImage___32_
push str.RwImageResample
push pe_nt_image_headers32
push str.c:_daily_rwsdk_src_baresamp.c
push 1
call fcn.0047bec0
add esp, 0x14
push esi
call fcn.00471af0
mov edi, eax
push esi
mov dword [esp + 0x2c], edi
call fcn.00471c00
mov ebx, eax
push ebp
mov dword [esp + 0x34], ebx
call fcn.00471af0
push ebp
mov dword [esp + 0x40], eax
call fcn.00471c00
fild dword [esp + 0x40]
mov ecx, dword [ebp]
mov edx, dword [esi]
and ecx, 2
add esp, 0x10
fidiv dword [esp + 0x24]
or edx, ecx
mov dword [esp + 0x2c], eax
mov dword [esi], edx
fmul dword [0x5b2884]
fstp dword [esp + 0x30]
fnstcw word [esp + 0x14]
fld dword [esp + 0x30]
mov ax, word [esp + 0x14]
or ah, 0xc
mov word [esp + 0x10], ax
fldcw word [esp + 0x10]
fistp dword [esp + 0x18]
fldcw word [esp + 0x14]
fild dword [esp + 0x2c]
fidiv dword [esp + 0x28]
fmul dword [0x5b2884]
fstp dword [esp + 0x30]
fnstcw word [esp + 0x10]
fld dword [esp + 0x30]
mov ax, word [esp + 0x10]
or ah, 0xc
mov word [esp + 0x14], ax
fldcw word [esp + 0x14]
fistp dword [esp + 0x2c]
fldcw word [esp + 0x10]
xor ecx, ecx
xor edx, edx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
jle 0x4bb8eb
mov eax, dword [esi + 0x10]
mov ebp, dword [esi + 0x14]
imul eax, edx
add eax, ebp
xor ebp, ebp
test edi, edi
jle 0x4bb8d4
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
lea edx, [edx + ecx - 1]
mov dword [esp + 0x10], edx
mov edx, ecx
sar edx, 0x10
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x18]
lea ebx, [eax + ebp - 1]
mov eax, dword [0x5e687c]
mov esi, dword [eax + 8]
mov dword [esp + 0x3c], esi
lea edx, [esi + 1]
mov dword [eax + 8], edx
mov eax, dword [0x5e687c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4bb6c0
test esi, esi
jne 0x4bb6c0
push str.Enter
push str.ImageResampleGetAvgPixel
push 0x9a
push str.c:_daily_rwsdk_src_baresamp.c
push 4
call fcn.0047bec0
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov edx, edi
sub edx, ecx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
sar edi, 0x10
cmp eax, edi
fmul dword [0x5bc4b8]
fst dword [esp + 0x34]
fstp dword [esp + 0x40]
jne 0x4bb717
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x78]
push ebx
push ebp
push ecx
call fcn.004bb970
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.0048eed0
add esp, 0x20
jmp 0x4bb800
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
mov esi, ecx
mov ecx, dword [esp + 0x74]
push eax
push ebx
and esi, 0xffff0000
push ebp
push ecx
add esi, 0x10000
call fcn.004bb970
mov eax, dword [esp + 0x28]
mov edx, esi
sub edx, eax
add esp, 0x10
mov dword [esp + 0x38], edx
lea eax, [esp + 0x4c]
fild dword [esp + 0x38]
lea ecx, [esp + 0x4c]
fmul dword [0x5bc4b8]
fstp dword [esp]
push eax
push ecx
call fcn.0048eed0
mov edx, esi
add esp, 0xc
sar edx, 0x10
cmp edx, edi
je 0x4bb7aa
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x58]
push eax
push esi
push ebx
push ebp
push ecx
call fcn.004bb970
lea edx, [esp + 0x5c]
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.0048ebd0
add esi, 0x10000
add esp, 0x20
mov edx, esi
sar edx, 0x10
cmp edx, edi
jne 0x4bb772
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x58]
push eax
push esi
push ebx
push ebp
push ecx
call fcn.004bb970
mov edx, dword [esp + 0x24]
add esp, 0x10
sub edx, esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x5c]
fild dword [esp + 0x38]
fmul dword [0x5bc4b8]
fstp dword [esp]
push eax
push ecx
call fcn.0048eed0
lea edx, [esp + 0x64]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.0048ebd0
mov esi, dword [esp + 0x54]
add esp, 0x18
fld dword [0x5b286c]
fdiv dword [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
lea eax, [esp + 0x4c]
fstp dword [esp]
push edx
push eax
call fcn.0048eed0
mov eax, dword [0x5e687c]
add esp, 0xc
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x5e687c]
cmp dword [ecx + 8], esi
je 0x4bb864
push 0x80000005
call fcn.0047c0a0
push eax
push str.ImageResampleGetAvgPixel
push 0xc6
push str.c:_daily_rwsdk_src_baresamp.c
push 2
call fcn.0047bec0
mov edx, dword [0x5e687c]
add esp, 0x18
mov dword [edx + 8], esi
mov eax, dword [0x5e687c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4bb892
test esi, esi
jne 0x4bb892
push str.Exit
push str.ImageResampleGetAvgPixel
push 0xc6
push str.c:_daily_rwsdk_src_baresamp.c
push 4
call fcn.0047bec0
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.0048f020
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add esp, 8
add ebp, edx
add esi, 4
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jne 0x4bb674
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add ecx, eax
inc edx
cmp edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
jl 0x4bb642
mov eax, dword [0x5e687c]
mov edi, dword [esp + 0x44]
pop ebp
pop ebx
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], edi
je 0x4bb934
push 0x80000005
call fcn.0047c0a0
push eax
push str.RwImageResample
push 0x11b
push str.c:_daily_rwsdk_src_baresamp.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], edi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4bb963
test edi, edi
jne 0x4bb963
push str.Exit
push str.RwImageResample
push 0x11b
push str.c:_daily_rwsdk_src_baresamp.c
push 4
call fcn.0047bec0
add esp, 0x14
mov eax, esi
pop edi
pop esi
add esp, 0x58
ret