Function at 0x552df0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0
je 0x552e02
cmp dword [ebp + 8], 0
jne 0x552e09
xor eax, eax
jmp 0x55320f
cmp dword [0x702c0c], 0
je 0x552e43
cmp dword [0x702c10], 0
je 0x552e43
cmp dword [0x702c14], 0
je 0x552e43
cmp dword [0x702c18], 0
je 0x552e43
cmp dword [0x702c1c], 0
je 0x552e43
cmp dword [0x702c20], 0
jne 0x552ed4
push str.gdiplus.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x702c0c], eax
cmp dword [0x702c0c], 0
jne 0x552e63
xor eax, eax
jmp 0x55320f
push str.GdipCreateBitmapFromStream
mov eax, dword [0x702c0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x702c10], eax
push str.GdiplusStartup
mov ecx, dword [0x702c0c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x702c14], eax
push str.GdiplusShutdown
mov edx, dword [0x702c0c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x702c18], eax
push str.GdipSaveImageToStream
mov eax, dword [0x702c0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x702c1c], eax
push str.GdipDisposeImage
mov ecx, dword [0x702c0c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x702c20], eax
cmp dword [0x702c10], 0
je 0x552f01
cmp dword [0x702c14], 0
je 0x552f01
cmp dword [0x702c18], 0
je 0x552f01
cmp dword [0x702c1c], 0
je 0x552f01
cmp dword [0x702c20], 0
jne 0x552f17
cmp dword [ebp + 0x14], 0
je 0x552f10
mov edx, dword [ebp + 0x14]
mov dword [edx], str.GdipCreateBitmapFromStream_GdiplusStartup_GdiplusShutdown_GdipSaveImageToStream_GdipDisposeImage_r_n
xor eax, eax
jmp 0x55320f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 1
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [0x702c14]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x552f9f
cmp dword [ebp + 0x14], 0
je 0x552f98
mov edx, dword [ebp + 0x14]
mov dword [edx], str.gdi
xor eax, eax
jmp 0x55320f
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
sub edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 3
ja case.default.0x552fc9
mov eax, dword [ebp - 0x54]
jmp dword [eax*4 + 0x553213]
lea ecx, [ebp - 0x44]
push ecx
push str.557CF400_1A04_11D3_9A73_0000F81EF32E
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x34], eax
jmp 0x553030
lea edx, [ebp - 0x44]
push edx
push str.557CF401_1A04_11D3_9A73_0000F81EF32E
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x34], eax
jmp 0x553030
lea eax, [ebp - 0x44]
push eax
push str.557CF402_1A04_11D3_9A73_0000F81EF32E
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x34], eax
jmp 0x553030
lea ecx, [ebp - 0x44]
push ecx
push str.557CF405_1A04_11D3_9A73_0000F81EF32E
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x44]
push edx
push str.557CF406_1A04_11D3_9A73_0000F81EF32E
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x55304c
cmp dword [ebp + 0x14], 0
je 0x553045
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x6bb2d4
xor eax, eax
jmp 0x55320f
mov ecx, dword [ebp - 0x14]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x553077
cmp dword [ebp + 0x14], 0
je 0x553070
mov edx, dword [ebp + 0x14]
mov dword [edx], 0x6bb2c4
xor eax, eax
jmp 0x55320f
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5531ce
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00578000
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x5530cb
cmp dword [ebp - 0x28], 0
jne 0x5530d0
jmp 0x5531ce
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [0x702c10]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x5530ed
cmp dword [ebp - 0x4c], 0
jne 0x5530f2
jmp 0x5531ce
lea eax, [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x55310f
cmp dword [ebp - 0x48], 0
jne 0x553114
jmp 0x5531ce
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [0x702c1c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x553136
jmp 0x5531ce
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x55314f
jmp 0x5531ce
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x5531b2
mov edx, dword [ebp - 0x14]
push edx
call fcn.00588c18
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00578340
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00578000
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x4c]
push eax
call dword [0x702c20]
mov dword [ebp - 0x34], eax
jmp 0x553084
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x28], 0
je 0x5531ea
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x48], 0
je 0x5531fc
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x2c], 0
je 0x55320c
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x702c18]
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret