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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, 0x4690e3
push edi
call fcn.00447953
mov ecx, esi
call fcn.0040d2a0
mov edi, dword [ebp + 0xc]
mov ebx, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
and ebx, reloc.WS2_32.dll_getsockopt
jns 0x40d3eb
dec ebx
or ebx, 0xfffffff8
add ebx, 1
mov edx, 8
je 0x40d3f8
mov eax, edx
sub eax, ebx
add edi, eax
mov eax, ecx
and eax, reloc.WS2_32.dll_getsockopt
jns 0x40d408
dec eax
or eax, 0xfffffff8
add eax, 1
je 0x40d40e
sub edx, eax
add ecx, edx
mov eax, edi
mov dword [esi + 0x14], ecx
imul eax, ecx
lea ebx, [esi + 0x40]
mov dword [esi + 0x10], edi
neg ecx
push 0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [esi + 0x1c], eax
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x18], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [ebx], 0x28
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0x200001
mov dword [esi + 0x50], 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
lea eax, [esi + 0x28]
push 0
push eax
push 0
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateDIBSection]
push edi
mov dword [ebp + 8], edi
call ebx
push edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x6c], eax
call edi
push 0
push 0
mov dword [esi + 0x70], eax
lea eax, [esi + 0x2c]
push eax
push 0
lea eax, [esi + 0x40]
push eax
push dword [ebp + 8]
call ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [esi + 0x74], eax
call edi
push ebx
push 0
mov dword [esi + 0x78], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 0x6c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x70]
call edi
push dword [esi + 0x74]
push dword [esi + 0x78]
call edi
cmp dword [esi + 0x6c], 0
push str.CreateDIBSection_returns_NULL_for_m_hBitmap.
push 0x7b
setne al
movzx eax, al
push str.E:DropboxMy_DevelopProjectNetScrClientNetAppClientImageManager.cpp
push eax
call fcn.00417ff0
cmp dword [esi + 0x74], 0
push str.CreateDIBSection_returns_NULL_for_m_hBitmapReplay.
push 0x7c
push str.E:DropboxMy_DevelopProjectNetScrClientNetAppClientImageManager.cpp
setne al
movzx eax, al
push eax
call fcn.00417ff0
add esp, 0x20
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
lea ebx, [esi + 0x40]
mov dword [ebp + 8], edi
test edi, edi
je 0x40d559
mov ecx, dword [esi + 0x28]
lea eax, [ebp + 8]
push eax
push ecx
push ebx
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromGdiDib]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
jmp 0x40d55b
xor edi, edi
push 0x10
mov dword [esi + 0x80], edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x40d599
mov ecx, dword [esi + 0x2c]
lea eax, [ebp + 8]
push eax
push ecx
push ebx
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromGdiDib]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
jmp 0x40d59b
xor edi, edi
imul eax, dword [esi + 0x1c], 0xc4
mov dword [esi + 0x84], edi
push eax
mov dword [esi + 0x34], eax
call fcn.00421da3
mov dword [esi + 0x30], eax
xor ecx, ecx
mov eax, dword [esi + 0x1c]
add esp, 4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421da3
mov ecx, dword [esi + 0x1c]
add esp, 4
shl ecx, 2
mov dword [esi + 0x38], eax
push ecx
push 0
push eax
call fcn.00423a10
add esp, 0xc
cmp dword [esi + 0x30], 0
setne al
movzx eax, al
push str.m_pBlockRecvBuf_memory_allocation_error.
push 0x88
push str.E:DropboxMy_DevelopProjectNetScrClientNetAppClientImageManager.cpp
push eax
call fcn.00417ff0
mov eax, dword [esi + 0x1c]
shl eax, 2
push eax
call fcn.00430359
xor edi, edi
mov dword [esi + 0x3c], eax
add esp, 0x14
cmp dword [esi + 0x1c], edi
jle 0x40d639
push 0xc8
call fcn.00421da3
mov ecx, dword [esi + 0x3c]
add esp, 4
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40d620
pop edi
pop esi
pop ebx
pop ebp
ret 0xc