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

Disassembly:
push 0xffffffffffffffff
push 0x53709d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
mov eax, dword [0x590f68]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x378], eax
mov eax, dword [esi + 0x78]
test eax, eax
push edi
je 0x470507
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x470619
lea ecx, [esp + 0x54]
call fcn.004940f0
mov eax, dword [esi + 0x35c]
push ecx
lea edi, [esi + 0x35c]
sub eax, 0x10
mov ebx, 1
mov dword [esp + 0x18], esp
mov ebp, esp
push eax
mov dword [esp + 0x390], 0
mov dword [esp + 0xe4], ebx
call fcn.00402ae0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x58]
mov dword [ebp], eax
call fcn.004953d0
xor ebp, ebp
cmp eax, ebp
je 0x4705b5
push ebp
lea ecx, [esp + 0x58]
call fcn.00494650
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], eax
imul eax, ecx
shl eax, 5
cdq
and edx, 7
add eax, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x54]
sar eax, 3
push ecx
lea edi, [esi + 0xd4]
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push edx
mov ecx, edi
mov dword [esp + 0x30], 0x28
mov word [esp + 0x3c], bx
mov word [esp + 0x3e], 0x20
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call dword [eax + 0x138]
lea ecx, [esp + 0x54]
mov dword [esp + 0x388], 0xffffffff
call fcn.00493ca0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x470507
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x150]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
mov edx, dword [edi]
push eax
mov eax, dword [esi + 0xbc]
push ecx
mov ecx, dword [esi + 0xb8]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x128]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x4706e8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x68]
sub ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x90], ecx
sub edx, dword [esp + 0x1c]
test eax, eax
mov dword [esi + 0x94], edx
jne 0x47055e
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
jle 0x470570
mov ecx, eax
fild dword [esi + 0x88]
mov dword [esp + 0x10], ecx
fidiv dword [esi + 0x8c]
fcom dword [0x54fb34]
fild dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4706c8
fmul st(1)
mov dword [esi + 0x94], ecx
fadd dword [0x54fb3c]
call fcn.004eaa58
fstp st(0)
mov dword [esi + 0x90], eax
jmp 0x4707b5
push edi
lea eax, [esp + 0x14]
push 0x553688
push eax
call fcn.00404c20
add esp, 0xc
mov eax, dword [eax]
push ebp
push ebp
push eax
mov byte [esp + 0x394], 1
call fcn.00515e6f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x388], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x54]
mov dword [esp + 0x388], 0xffffffff
call fcn.00493ca0
jmp 0x470b1b
mov eax, dword [esi + 0x35c]
mov ebx, dword [eax - 4]
lea ebp, [esi + 0x35c]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, ebx
dec eax
or eax, ecx
jge 0x470643
push 1
mov ecx, ebp
call fcn.00401560
mov eax, dword [ebp]
mov edx, dword [esi + 0xd4]
push 0
push 1
push 1
lea edi, [esi + 0xd4]
push 0
push eax
mov ecx, edi
call dword [edx + 0x178]
cmp eax, 1
je 0x4704ce
push ebp
lea eax, [esp + 0x14]
push 0x553688
push eax
call fcn.00404c20
add esp, 0xc
mov eax, dword [eax]
push 0
push 0
push eax
mov dword [esp + 0x394], 2
call fcn.00515e6f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x388], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470b1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x470b1b
fdiv st(1)
mov dword [esi + 0x90], ecx
fadd dword [0x54fb3c]
call fcn.004eaa58
fstp st(0)
mov dword [esi + 0x94], eax
jmp 0x4707b5
mov eax, dword [esi + 0x78]
test eax, eax
je 0x47071d
lea edi, [esi + 0xd4]
mov ecx, edi
call dword [sym.imp.ltwvc13n.dll_public:_int___thiscall_LBitmapBase::GetWidth_void_]
mov ecx, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x98], eax
call dword [sym.imp.ltwvc13n.dll_public:_int___thiscall_LBitmapBase::GetHeight_void_]
mov dword [esi + 0x94], eax
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x14], ecx
fidiv dword [esp + 0x14]
jle 0x470764
fld dword [0x556dc8]
mov dword [esi + 0x90], 0x100
fdiv st(1)
fadd dword [0x54fb3c]
call fcn.004eaa58
fstp st(0)
mov dword [esi + 0x94], eax
jmp 0x470785
fmul dword [0x556dc8]
mov dword [esi + 0x94], 0x100
fadd dword [0x54fb3c]
call fcn.004eaa58
mov dword [esi + 0x90], eax
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov dword [esi + 0xa0], edx
mov edx, dword [esi + 0x94]
mov dword [esi + 0xa4], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], edx
lea edi, [esi + 0xd4]
mov ecx, edi
call dword [sym.imp.ltwvc13n.dll_public:_int___thiscall_LBitmapBase::GetBitsPerPixel_void_]
push 0
push 0
push 0
mov ebx, eax
mov eax, dword [edi]
push 4
push 0x20
mov ecx, edi
mov dword [esp + 0x28], ebx
call dword [eax + 0x148]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x47090c
mov eax, dword [esi + 0x64]
test eax, eax
je 0x4708d8
cmp ebx, 0x20
jne 0x4708ba
lea ecx, [esp + 0xf4]
call dword [sym.imp.ltwvc13n.dll_public:_void___thiscall_LBitmapBase::constructor_void_]
push edi
lea ecx, [esp + 0xf8]
mov dword [esp + 0x38c], 3
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::CreateAlphaBitmap_class_LBitmapBase__]
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
mov edx, dword [edi]
push 2
push eax
push ecx
mov ecx, edi
call dword [edx + pe_nt_image_headers32]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
mov edx, dword [edi]
push 2
push eax
push ecx
mov ecx, edi
call dword [edx + pe_nt_image_headers32]
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x88]
mov ebp, dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Size_int__int__unsigned_long_int_]
push 2
push edx
push eax
lea ecx, [esp + 0x100]
call ebp
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push 2
push ecx
push edx
lea ecx, [esp + 0x100]
call ebp
mov eax, dword [edi]
lea ecx, [esp + 0xf4]
push ecx
mov ecx, edi
call dword [eax + 0x10c]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x388], 0xffffffff
call dword [sym.imp.ltwvc13n.dll_public_virtual:_void___thiscall_LBitmapBase::destructor_void_]
jmp 0x47090c
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
mov edx, dword [edi]
push 2
push eax
push ecx
mov ecx, edi
call dword [edx + pe_nt_image_headers32]
push 2
jmp 0x4708f4
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
mov edx, dword [edi]
push 0
push eax
push ecx
mov ecx, edi
call dword [edx + pe_nt_image_headers32]
push 0
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + pe_nt_image_headers32]
mov eax, dword [esi + 0x360]
xor ebp, ebp
cmp eax, ebp
mov dword [esi + 0x78], ebp
je 0x470922
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x13c]
push eax
mov dword [esi + 0x360], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
lea edi, [eax + 0x28]
mov eax, dword [esi + 0x94]
imul eax, dword [esi + 0x90]
test eax, eax
mov dword [esi + 0x364], edi
jle 0x470b1b
jmp 0x470960
mov bl, byte [edi]
mov cl, byte [edi + 2]
cmp dword [esp + 0x14], 0x20
mov byte [edi], cl
mov byte [edi + 2], bl
je 0x470975
mov byte [edi + 3], 0xff
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x470a44
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47098b
mov byte [edi + 3], 0xff
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4709dd
mov dl, byte [edi]
xor eax, eax
cmp dl, byte [esi + eax + 0xc4]
ja 0x4709cf
cmp dl, byte [eax + esi + 0xc7]
jb 0x4709cf
mov cl, byte [edi + 1]
cmp cl, byte [eax + esi + 0xc5]
ja 0x4709cf
cmp cl, byte [eax + esi + 0xc8]
jb 0x4709cf
cmp bl, byte [eax + esi + 0xc6]
ja 0x4709cf
cmp bl, byte [eax + esi + 0xc9]
jae 0x4709d7
inc eax
cmp eax, 1
jl 0x470996
jmp 0x470a44
mov byte [edi + 3], 0
jmp 0x470a44
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x470a44
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
mov dword [esp + 0x10], edx
movzx ecx, bl
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [0x5536a0]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul dword [0x553698]
faddp st(1)
fild dword [esp + 0x10]
fmul dword [0x55369c]
faddp st(1)
fadd dword [0x54fb3c]
call fcn.004eaa58
movzx ecx, byte [esi + 0xca]
cmp eax, ecx
jg 0x470a40
imul eax, eax, 0xff
cdq
idiv ecx
mov byte [edi + 3], al
jmp 0x470a44
mov byte [edi + 3], 0xff
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x470b02
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
mov dword [esp + 0x10], edx
movzx ecx, bl
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [0x5536a0]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul dword [0x553698]
faddp st(1)
fild dword [esp + 0x10]
fmul dword [0x55369c]
faddp st(1)
fadd dword [0x54fb3c]
call fcn.004eaa58
mov byte [edi], al
mov byte [edi + 1], al
mov byte [edi + 2], al
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x470ab0
movzx ecx, byte [edi + 3]
cmp ecx, eax
jge 0x470aab
mov eax, ecx
mov byte [edi + 3], al
jmp 0x470b02
mov byte [edi + 3], al
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x470b02
xor ecx, ecx
lea esp, [esp]
cmp al, byte [esi + ecx + 0xc4]
ja 0x470af6
cmp al, byte [ecx + esi + 0xc7]
jb 0x470af6
cmp al, byte [ecx + esi + 0xc5]
ja 0x470af6
cmp al, byte [ecx + esi + 0xc8]
jb 0x470af6
cmp al, byte [ecx + esi + 0xc6]
ja 0x470af6
cmp al, byte [ecx + esi + 0xc9]
jae 0x470afe
inc ecx
cmp ecx, 1
jl 0x470ac0
jmp 0x470b02
mov byte [edi + 3], 0
mov edx, dword [esi + 0x94]
imul edx, dword [esi + 0x90]
add edi, 4
inc ebp
cmp ebp, edx
jl 0x470960
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x37c]
call fcn.004e9911
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c
ret