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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4cb070]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 1
push eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea eax, [esp + 0x34]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0x34], xmm0
push esi
mov dword [esp + 0x38], vtable.Gdiplus::Image.0
mov dword [esp + 0x3c], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov edi, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x30], 0
call edi
mov ecx, dword [esp + 0x38]
test eax, eax
mov esi, dword [esp + 0x28]
cmovne ecx, eax
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], ecx
push eax
push dword [esp + 0x38]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x28], 0
cmovne ecx, eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x40], ecx
cmp esi, dword [esp + 0x34]
jbe 0x43580f
mov esi, dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
call esi
jmp 0x435817
call edi
mov esi, dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x20], 0
cmovne ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x26200a
push 0
push eax
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
push 2
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
movq qword [esp + 0x50], xmm0
push 0
mov dword [esp + 0x54], 0
call dword [sym.imp.gdiplus.dll_GdipCreatePath]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
push eax
push eax
push 0
push 0
push dword [esp + 0x5c]
call dword [sym.imp.gdiplus.dll_GdipAddPathEllipseI]
mov ecx, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x58], 0
cmovne ecx, eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x58], ecx
call esi
mov ecx, dword [esp + 0x38]
test eax, eax
mov esi, dword [esp + 0x58]
cmovne ecx, eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], ecx
push eax
push dword [esp + 0x38]
call edi
mov ecx, dword [esp + 0x38]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
sub eax, ecx
shr eax, 1
sub esi, ecx
shr esi, 1
mov dword [esp + 0x1c], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b6030]
lea eax, [esp + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x4b6030]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
push eax
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push 0
push dword [esp + 0x4c]
call dword [sym.imp.gdiplus.dll_GdipCreateTexture2]
push dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
push esi
push dword [esp + 0x34]
call dword [sym.imp.gdiplus.dll_GdipFillPath]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
lea eax, [esp + 0x24]
mov dword [esp + 0x54], 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x435a63
push eax
call fcn.0047bc31
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
je 0x435a63
push esi
push dword [esp + 0x28]
push dword [esp + 0x5c]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x435a33
mov eax, dword [esi + 0x30]
mov ecx, str.image_png
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435a16
test dx, dx
je 0x435a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4359f0
xor eax, eax
jmp 0x435a1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435a27
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x70], xmm0
add esi, 0x4c
sub edi, 1
jne 0x4359e2
mov esi, dword [esp + 0x1c]
push esi
call fcn.004769c2
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x74]
add esp, 4
push 0
push eax
push dword [esp + 0x20]
push esi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push dword [esp + 0x5c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov byte [esp + 0x17], 1
jmp 0x435a6c
mov esi, dword [esp + 0x20]
mov byte [esp + 0x17], 0
push dword [esp + 0x4c]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push esi
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
push dword [esp + 0x34]
mov dword [esp + 0x34], vtable.Gdiplus::Image.0
call esi
mov ecx, dword [esp + 0x8c]
mov al, byte [esp + 0x17]
pop edi
pop esi
xor ecx, esp
call fcn.00459a5d
mov esp, ebp
pop ebp
ret 8