Function at 0x41361c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
xor esi, esi
cmp dword [0x4bde00], esi
push edi
jne 0x4137fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x413717
push 1
push esi
lea eax, [ebp - 4]
push eax
push str._SystemRoot_WinSxS
mov ecx, 0x4bdfa0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0044c0fc
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0048f048
add esp, 0xc
test eax, eax
je 0x413707
push dword [ebp - 4]
call fcn.0040e64a
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop ecx
cmp word [ebp - 0x244], 0x2e
je 0x4136f4
test byte [ebp - 0x270], 0x10
je 0x4136f4
push dword [ebp - 4]
call esi
mov edi, eax
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [eax + edi + 0x1e]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043d49b
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 4]
push str._s_sGdiPlus.dll
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00437960
test edi, edi
jne 0x413707
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 8]
call fcn.00405192
test eax, eax
jne 0x413696
lea ecx, [ebp - 4]
call fcn.00437960
lea ecx, [ebp - 8]
call fcn.00402b8f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusShutdown
push edi
call esi
push str.GdipLoadImageFromFile
push edi
mov dword [0x4bde04], eax
call esi
push str.GdipDisposeImage
push edi
mov dword [0x4bde14], eax
call esi
push str.GdipCreateFromHDC
push edi
mov dword [0x4bde08], eax
call esi
push str.GdipDrawImageRectI
push edi
mov dword [0x4bde0c], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push edi
mov dword [0x4bde10], eax
call esi
push str.GdipCreateHBITMAPFromBitmap
push edi
mov dword [0x4bde20], eax
call esi
push str.GdipSaveImageToFile
push edi
mov dword [0x4bde24], eax
call esi
push str.GdipGetImageEncodersSize
push edi
mov dword [0x4bde28], eax
call esi
push str.GdipGetImageEncoders
push edi
mov dword [0x4bde18], eax
call esi
push str.GdipDrawImageI
push edi
mov dword [0x4bde1c], eax
call esi
push str.GdipGetImageWidth
push edi
mov dword [0x4bde2c], eax
call esi
push str.GdipGetImageHeight
push edi
mov dword [0x4bde30], eax
call esi
mov ebx, str.GdipDrawImageRectRectI
push ebx
push edi
mov dword [0x4bde34], eax
call esi
push ebx
push edi
mov dword [0x4bde38], eax
call esi
push str.GdipSetInterpolationMode
push edi
mov dword [0x4bde3c], eax
call esi
push str.GdiplusStartup
push edi
mov dword [0x4bde40], eax
call esi
mov dword [0x4bde00], eax
xor esi, esi
pop ebx
cmp dword [0x4bdec4], esi
jne 0x413829
cmp dword [0x4bde14], esi
je 0x413829
xor eax, eax
mov dword [ebp - 0x20], 1
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4bdec4
call dword [0x4bde00]
cmp dword [ebp + 8], 0xffffffff
jne 0x413836
mov eax, dword [0x4bdec4]
jmp 0x413853
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x413850
mov eax, dword [0x4bde14]
cmp eax, esi
je 0x413850
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret