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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x100e18d0]
xor eax, esp
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x60]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push eax
xor edi, edi
push ecx
mov dword [esp + 0x20], vtable.Gdiplus::Image.0
mov dword [esp + 0x24], edi
call sub.gdiplus.dll_GdipLoadImageFromFile
lea edx, [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x4c], edi
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, edi
je 0x1002904e
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x50], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x1002906d
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x3c]
push eax
push edi
push 0x26200a
push edi
push esi
push ecx
mov dword [esp + 0x54], edi
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x38]
push edx
push eax
mov ebp, eax
mov dword [esp + 0x40], edi
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov eax, dword [esp + 0x38]
push 2
mov ebx, eax
push eax
mov dword [esp + 0x54], ebx
call sub.gdiplus.dll_GdipSetSmoothingMode
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0x30], edi
call sub.gdiplus.dll_GdipCreatePath
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], edi
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, edi
je 0x100290dd
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x100290fc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push esi
push edx
push edi
push edi
push eax
call sub.gdiplus.dll_GdipAddPathEllipseI
cmp eax, edi
je 0x10029116
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
call sub.gdiplus.dll_GdipCreateTexture
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push ecx
push eax
push ebx
mov esi, eax
call sub.gdiplus.dll_GdipFillPath
push esi
call sub.gdiplus.dll_GdipDeleteBrush
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
call sub.gdiplus.dll_GdipGetImageEncodersSize
mov eax, dword [esp + 0x30]
cmp eax, edi
jne 0x100291de
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeletePath
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
push ebp
call sub.gdiplus.dll_GdipDisposeImage
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x1c], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100291a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100291c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1007fe37
add esp, 0x5c
ret
push eax
call fcn.10080c2b
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x10029211
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov edx, dword [esp + 0x4c]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push ebp
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x1c]
push eax
jmp 0x1002917c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push ebx
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageEncoders
mov eax, dword [esp + 0x34]
cmp eax, edi
jbe 0x1002928c
mov esi, ebx
mov dword [esp + 0x14], eax
nop
mov eax, dword [esi + 0x30]
mov ecx, str.image_png
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002925e
cmp dx, di
je 0x1002925a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002925e
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10029238
xor eax, eax
jmp 0x10029263
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x10029282
mov eax, dword [esi]
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], eax
add esi, 0x4c
sub dword [esp + 0x14], 1
jne 0x10029230
push ebx
call fcn.10080de3
mov edx, dword [esp + 0x78]
add esp, 4
push edi
lea ecx, [esp + 0x58]
push ecx
push edx
push ebp
call sub.gdiplus.dll_GdipSaveImageToFile
mov eax, dword [esp + 0x28]
push eax
call sub.gdiplus.dll_GdipDeletePath
mov ecx, dword [esp + 0x4c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
push ebp
call sub.gdiplus.dll_GdipDisposeImage
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x1c], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100292f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10029312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1007fe37
add esp, 0x5c
ret