Function at 0x4135a0
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 0x41377e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x41369b
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.0044c04c
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0048efb8
add esp, 0xc
test eax, eax
je 0x41368b
push dword [ebp - 4]
call fcn.0040e596
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop ecx
cmp word [ebp - 0x244], 0x2e
je 0x413678
test byte [ebp - 0x270], 0x10
je 0x413678
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.0043d3c3
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.00437884
test edi, edi
jne 0x41368b
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 8]
call fcn.00405140
test eax, eax
jne 0x41361a
lea ecx, [ebp - 4]
call fcn.00437884
lea ecx, [ebp - 8]
call fcn.00402bbf
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 0x4137ad
cmp dword [0x4bde14], esi
je 0x4137ad
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 0x4137ba
mov eax, dword [0x4bdec4]
jmp 0x4137d7
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x4137d4
mov eax, dword [0x4bde14]
cmp eax, esi
je 0x4137d4
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret