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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5383f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
mov eax, dword [0x590f68]
push ebx
push esi
mov dword [esp + 0x318], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x44], ecx
je 0x47d2b3
mov ebx, dword [ecx + 0x808]
lea eax, [ecx + 0x68c]
add ebx, 0x1a0
lea edi, [ecx + 0x850]
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jmp 0x47d2da
mov eax, dword [ecx + 0x808]
add eax, 0x204
lea edx, [ecx + 0x610]
add ecx, 0x858
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov ebx, eax
mov edi, ecx
mov ecx, edi
call fcn.004ffe5d
mov ecx, dword [ebx + 8]
xor eax, eax
cmp ecx, esi
jle 0x47d305
lea ebx, [ebx]
cmp eax, esi
jl 0x47d737
cmp eax, ecx
jge 0x47d737
inc eax
cmp eax, ecx
jl 0x47d2f0
lea ecx, [esp + 0x90]
call dword [sym.imp.ltwvc13n.dll_public:_void___thiscall_LBitmapBase::constructor_void_]
mov eax, 0x30
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x330], esi
mov dword [esp + 0x68], 0x28
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x20
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call fcn.00510202
mov ecx, dword [esp + 0x58]
push 0xc
push ecx
mov byte [esp + 0x334], 1
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push 1
push esi
push 0x19
push 0x10
push 0x10
mov ecx, edi
mov dword [esp + 0x60], eax
call fcn.00500109
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x56aa08
mov byte [esp + 0x32c], 2
call fcn.00527fd7
mov eax, dword [eax + 0xc]
push 0x153
push eax
call dword [sym.imp.user32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x20]
call fcn.00510468
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 4]
push 0xffffff
push edx
push eax
call dword [sym.imp.comctl32.dll_ImageList_AddMasked]
push 5
call dword [sym.imp.user32.dll_GetSysColor]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.comctl32.dll_ImageList_SetBkColor]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.comctl32.dll_ImageList_GetImageCount]
mov eax, dword [ebx + 8]
xor edx, edx
cmp eax, esi
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], edx
jle 0x47d696
cmp edx, esi
jl 0x47d737
cmp edx, eax
jge 0x47d737
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*4]
xor eax, eax
cmp dword [ecx + 0x14], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], eax
jle 0x47d686
jmp 0x47d446
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
cmp eax, esi
jl 0x47d737
cmp eax, dword [ecx + 0x14]
jge 0x47d737
mov ecx, dword [ecx + 0x10]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [esp + 0x40]
mov dword [edi + 0x34], eax
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x38]
cmp eax, esi
je 0x47d47b
push eax
lea edx, [esp + 0x68]
push edx
jmp 0x47d491
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x808]
mov edx, dword [ecx + 0x734]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x98]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::ConvertFromDIB_struct_tagBITMAPINFO___unsigned_char__]
mov ecx, dword [esp + 0x4c]
push esi
push esi
push esi
push 4
push ecx
lea ecx, [esp + 0xa4]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::ColorRes_int__unsigned_long_int__struct_tagRGBQUAD___struct_HPALETTE_____unsigned_int_]
lea ecx, [esp + 0x90]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_void____thiscall_LBitmapBase::ConvertToDIB_void_]
mov ebx, eax
cmp ebx, esi
je 0x47d729
mov esi, dword [sym.imp.kernel32.dll_GlobalLock]
push ebx
call esi
add eax, 0x28
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x47d4fa
push 0x2400
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
je 0x47d4fa
push eax
call esi
mov dword [edi + 0x38], eax
mov edi, dword [edi + 0x38]
test edi, edi
je 0x47d512
mov esi, dword [esp + 0x24]
mov ecx, 0x900
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.kernel32.dll_GlobalLock]
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
push 2
push 0x18
push 0x18
lea ecx, [esp + 0x9c]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Size_int__int__unsigned_long_int_]
push 0x10
push 0x10
push 4
push 4
lea ecx, [esp + 0xa0]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Trim_int__int__unsigned_int__unsigned_int_]
lea ecx, [esp + 0x90]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_void____thiscall_LBitmapBase::ConvertToDIB_void_]
push eax
mov dword [esp + 0x28], eax
call esi
lea edi, [eax + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x56aa08
mov edx, dword [esp + 0x54]
push 0x10
push 0x10
push edx
mov byte [esp + 0x338], 3
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call fcn.00510468
mov eax, dword [esp + 0x4c]
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x2c]
sar esi, 3
push edi
shl esi, 8
push esi
push eax
call dword [sym.imp.gdi32.dll_SetBitmapBits]
push esi
call fcn.004ea96f
mov ebx, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add esp, 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x56aa08
mov eax, dword [esp + 0x54]
push 0x10
push 0x10
push eax
mov byte [esp + 0x338], 4
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x34]
call fcn.00510468
mov ecx, dword [esp + 0x34]
push ebx
push esi
push ecx
call dword [sym.imp.gdi32.dll_SetBitmapBits]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.comctl32.dll_ImageList_Add]
push ebx
call fcn.004ea481
mov esi, 0x56a400
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x32c], 3
mov dword [esp + 0x30], esi
call fcn.005104bf
lea ecx, [esp + 0x28]
mov byte [esp + 0x32c], 2
mov dword [esp + 0x28], esi
call fcn.005104bf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
inc eax
xor esi, esi
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x47d43e
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 8]
inc edx
cmp edx, eax
mov dword [esp + 0x38], edx
jl 0x47d413
mov edi, dword [edi + 4]
mov ebx, dword [esp + 0x48]
mov edx, dword [ebx + 0x1c]
push edi
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push esi
push 0x1109
push edx
call edi
push eax
call fcn.004ffe73
mov eax, dword [ebx + 0x1c]
push esi
push 1
push 0x1107
push eax
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x56a400
mov byte [esp + 0x32c], 1
call fcn.005104bf
lea ecx, [esp + 0x50]
mov byte [esp + 0x32c], 0
call fcn.0051025d
lea ecx, [esp + 0x90]
mov dword [esp + 0x32c], 0xffffffff
call dword [sym.imp.ltwvc13n.dll_public_virtual:_void___thiscall_LBitmapBase::destructor_void_]
mov ecx, dword [esp + 0x324]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x31c]
call fcn.004e9911
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push esi
push 0x551864
call fcn.00515e6f
jmp 0x47d6c4
call fcn.004fd76e
int3