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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x560113
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x409a52
cmp dword [ebp + 0x1c], ebx
je 0x409a52
cmp dword [ebp + 0x20], ebx
je 0x409a52
mov eax, dword [ebp + 0x14]
cmp eax, dword [edi + 0x74]
jge 0x409a52
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [edi + 0x78]
jge 0x409a52
lea ecx, [esp + 0x7c]
call fcn.00433f2d
push esi
lea ecx, [esp + 0x80]
mov dword [esp + 0xc4], ebx
call fcn.0043463c
lea ecx, [esp + 0x44]
call fcn.00433f2d
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xc4], 1
call fcn.00409ca0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], vtable.CBitmap.0
mov byte [esp + 0xc0], 2
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x58]
call fcn.00434910
lea ecx, [esp + 0x7c]
call fcn.00434674
mov ecx, dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x48]
call fcn.00409c40
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x7c], eax
call fcn.00433c2e
mov edx, dword [edi + 0x44]
push edx
lea ecx, [esp + 0x48]
call fcn.00433cc4
lea eax, [edi + 0x3c]
cmp eax, ebx
jne 0x409469
xor eax, eax
jmp 0x40946c
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x48]
call fcn.00409c40
mov eax, dword [edi + 0x48]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x5c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.00409c10
mov byte [esp + 0xc0], 3
movzx eax, byte [edi + 0x10]
movzx edx, byte [edi + 0x11]
movzx ecx, byte [edi + 0x12]
or eax, 0xffffff00
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x3c]
shl eax, 8
or eax, ecx
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipGraphicsClear]
cmp eax, ebx
je 0x4094d3
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp dword [edi + 0x54], ebx
je 0x4094f7
mov esi, dword [edi + 0x24]
jmp 0x4094fa
mov esi, dword [edi + 0x28]
lea eax, [esp + 0x24]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp esi, ebx
je 0x4096c4
cmp word [esp + 0x36], 0x20
push 0x10
jne 0x4095f8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
cmp eax, ebx
je 0x409547
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, eax
call fcn.00409bd0
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x40954b
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x28]
xor eax, eax
lea ecx, [esp + 0x9c]
push ecx
push 0x26200a
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
push 2
lea edx, [esp + 0x98]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x409599
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
xor esi, esi
test ecx, ecx
jle 0x4095d9
mov edi, edi
mov eax, dword [esp + 0x30]
sub ecx, esi
dec ecx
push eax
imul ecx, eax
imul eax, esi
add ecx, dword [esp + 0x24]
add eax, dword [esp + 0x1c]
push ecx
push eax
call fcn.0052f500
mov ecx, dword [esp + 0x38]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x4095b0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x409611
mov dword [esi + 8], eax
jmp 0x409611
call dword [sym.imp.gdiplus.dll_GdipAlloc]
cmp eax, ebx
je 0x40960d
push ebx
push esi
mov ecx, eax
call fcn.00409b90
jmp 0x40960f
xor eax, eax
mov ebx, eax
xor edx, edx
cmp dword [edi + 0x20], edx
je 0x409652
mov ecx, dword [edi + 0x74]
mov eax, dword [edi + 0x78]
mov dword [esp + 0x6c], ecx
mov ecx, ebx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
call fcn.0040a1e0
mov ecx, ebx
mov esi, eax
call fcn.0040a210
push eax
mov edx, esi
lea eax, [esp + 0x68]
mov ecx, ebx
lea esi, [esp + 0x40]
call fcn.00409b40
jmp 0x4096b4
mov ecx, ebx
call fcn.0040a210
mov ecx, dword [edi + 0x74]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.0040a1e0
mov edx, dword [edi + 0x78]
sub edx, eax
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [edi + 0x50], 0
jne 0x40968c
mov dword [esp + 0x18], 0
cmp dword [edi + 0x4c], 0
jne 0x409694
xor esi, esi
mov ecx, ebx
call fcn.0040a1e0
push eax
mov ecx, ebx
call fcn.0040a210
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
push ebx
lea ecx, [esp + 0x50]
call fcn.00409af0
test ebx, ebx
je 0x4096c2
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
xor ebx, ebx
cmp dword [edi + 0x54], ebx
je 0x4096ce
mov ebx, dword [edi + 0x30]
jmp 0x4096d1
mov ebx, dword [edi + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [edi + 0x74]
sub eax, dword [esp + 0x5c]
xor esi, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x78]
sub eax, dword [esp + 0x60]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x4c], esi
jne 0x40970e
mov dword [esp + 0x1c], esi
mov eax, esi
cmp dword [edi + 0x50], esi
jne 0x409719
mov dword [esp + 0x10], esi
mov ecx, esi
cmp ebx, esi
je 0x409954
cmp word [esp + 0x36], 0x20
mov dword [esp + 0x14], esi
push 0x10
jne 0x4098b6
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x409758
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, eax
call fcn.00409bd0
mov ebx, eax
jmp 0x40975a
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x9c]
push edx
push 0x26200a
mov dword [esp + 0x74], eax
xor esi, esi
push 2
lea eax, [esp + 0x70]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 4]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
cmp eax, esi
je 0x40979d
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x4097db
mov eax, dword [esp + 0x30]
sub ecx, esi
dec ecx
imul ecx, eax
add ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
imul ecx, eax
add ecx, dword [esp + 0x1c]
push ecx
call fcn.0052f500
mov ecx, dword [esp + 0x38]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x4097b0
mov eax, dword [ebx + 4]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x4097f4
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x409812
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x5c]
mov eax, dword [edi + 0x74]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
sar esi, 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
xor ecx, ecx
cmp eax, ecx
je 0x409846
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x78]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [edi + 0x50], ecx
jne 0x40985d
xor esi, esi
cmp dword [edi + 0x4c], ecx
jne 0x409866
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x409880
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ecx, esi
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x10], ecx
jle 0x4098d0
cmp dword [edi + 0x50], 0
je 0x4098ad
mov eax, dword [edi + 0x5c]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x4098d0
add ecx, dword [edi + 0x5c]
mov dword [esp + 0x10], ecx
jmp 0x4098d0
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4098cc
push 0
push ebx
mov ecx, eax
call fcn.00409b90
jmp 0x4098ce
xor eax, eax
mov ebx, eax
mov ecx, dword [edi + 0x64]
add dword [esp + 0x14], ecx
add dword [esp + 0x1c], ecx
mov eax, dword [edi + 0x60]
mov edx, dword [ebx + 4]
add dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
push edx
add esi, eax
mov dword [esp + 0x20], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x409902
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x409928
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.00409af0
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x48]
mov esi, dword [edx - 0xc]
push esi
push edx
push eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x5c]
push ecx
lea ecx, [esp + 0x54]
call edx
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
sub ecx, eax
sar ecx, 2
xor esi, esi
test ecx, ecx
je 0x4099b4
nop
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x74]
push edx
mov edx, dword [ecx + 0x70]
push eax
mov eax, dword [ecx + 0x6c]
push 0
push 0
push edx
mov edx, dword [esp + 0x5c]
push eax
push edx
call fcn.00409350
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x409980
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], 0xff0000
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x409a09
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov byte [esp + 0xc0], 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.CBitmap.0
call fcn.00408c70
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.004346bd
lea ecx, [esp + 0x7c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.004346bd
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c