Function at 0x408b40
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
mov eax, dword [0x492f50]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xd8], eax
test byte [esi + 0xac], 1
push edi
je 0x409a3f
mov eax, dword [esi + 0xeac]
mov ecx, dword [esi + 0xea8]
xor ebx, ebx
push ebx
push 0x3e8
push eax
push ecx
call fcn.0044ac60
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call fcn.0045c368
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0xec], ebx
call fcn.0045c368
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x45c]
sub eax, 0x10
push eax
mov byte [esp + 0xf0], 1
call fcn.004026d0
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xd0]
sub eax, 0x10
push eax
mov byte [esp + 0xf4], 2
call fcn.004026d0
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esi + 0x80]
push eax
lea ecx, [esi + 0x7c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x100], 3
call fcn.004077f0
add esp, 0x14
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xf0], 4
call fcn.00403d30
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xec], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x64]
push ecx
sub eax, 0x10
mov dword [esp + 0x5c], esp
mov edi, esp
push eax
call fcn.004026d0
add eax, 0x10
mov dword [edi], eax
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x70], esp
push ecx
sub eax, 0x10
mov dword [esp + 0x74], esp
mov edi, esp
push eax
mov byte [esp + 0x100], 5
call fcn.004026d0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 0xc4]
sub eax, 0x10
mov dword [esp + 0x98], esp
mov edi, esp
push eax
mov byte [esp + 0x104], 6
call fcn.004026d0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov edi, esp
push eax
mov byte [esp + 0x108], 7
mov dword [esp + 0x48], eax
call fcn.004026d0
add eax, 0x10
add esp, 4
lea ecx, [esi + 0x468]
mov dword [edi], eax
mov byte [esp + 0x104], 3
call fcn.00436aa0
test byte [esi + 0x68], 2
je 0x408d2f
cmp dword [esi + 0xeb4], ebx
jg 0x408d23
mov eax, dword [esi + 0xee4]
mov dword [esp + 0x1c], eax
jmp 0x408d39
mov ecx, dword [esi + 0xefc]
mov dword [esp + 0x1c], ecx
jmp 0x408d39
mov edx, dword [esi + 0xee4]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x50], 0x4770f8
mov dword [esp + 0x84], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
cmp dword [esi + 0xeb4], ebx
jg 0x408ddd
test byte [esi + 0x68], 2
je 0x408ddd
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x24]
call fcn.00406860
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x24], ebx
jne 0x408dcf
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 0xff000000
call fcn.00406790
lea ecx, [esp + 0x48]
call fcn.004062c0
push eax
lea ecx, [esp + 0x4c]
call fcn.00406290
push eax
push ebx
push ebx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x34]
call fcn.004068a0
mov edx, dword [esp + 0x6c]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x50], ebx
jne 0x4099a2
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x408e04
mov dword [esp + 0x50], eax
cmp dword [esp + 0xc], ebx
je 0x4099a2
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x90]
call fcn.00406860
test byte [esi + 0xac], 0x40
je 0x408ec9
cmp dword [esi + 0x454], ebx
je 0x408ec9
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x2f
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], 0xffffff00
mov dword [esp + 0x18], 0xffff0000
call fcn.004067f0
lea ecx, [esp + 0x48]
call fcn.00406290
test eax, eax
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
jge 0x408e78
fadd qword [0x4771a0]
fsub qword [0x477198]
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x6c]
push eax
fstp dword [esp + 0xb4]
lea ecx, [esp + 0x94]
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xbc], 0x42200000
mov dword [esp + 0xc0], 0x42200000
call fcn.00406fe0
mov ecx, dword [esp + 0x6c]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
test byte [esi + 0xac], 0x20
je 0x409112
mov edi, dword [esp + 0x30]
cmp dword [edi - 0xc], ebx
je 0x409112
push ebx
push 0x477190
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 1
call fcn.00407200
cmp eax, 0xffffffff
jne 0x408f10
mov edx, dword [edi - 0xc]
mov dword [esp + 0x14], edx
jmp 0x408f58
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, eax
sub ecx, edx
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jle 0x408f2f
mov dword [esp + 0x14], ecx
mov ecx, dword [edi - 0xc]
add eax, 2
cmp eax, ebx
jl 0x408f58
cmp eax, ecx
jg 0x408f58
add eax, edi
push 0x477190
push eax
call fcn.0044ae11
add esp, 8
cmp eax, ebx
je 0x408f58
sub eax, edi
cmp eax, 0xffffffff
jne 0x408f10
mov eax, dword [edi - 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
sub eax, edx
cmp eax, ecx
jle 0x408f6d
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x477188
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x24], eax
push 2
push 1
push 0x41480000
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00406a00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x14], 0xa0b4b4b4
call fcn.00406790
fild dword [esp + 0x14]
lea eax, [esp + 0xac]
push eax
fmul dword [0x477184]
lea ecx, [esp + 0xa4]
fld dword [0x477180]
push ecx
lea ecx, [esp + 0x94]
fadd st(1)
mov dword [esp + 0xb4], 0x40a00000
mov dword [esp + 0xb8], 0x40a00000
mov dword [esp + 0xc4], 0x41200000
fstp dword [esp + 0xbc]
mov dword [esp + 0xc8], 0x41200000
fild dword [esp + 0x20]
fmul dword [0x47717c]
fst dword [esp + 0xc0]
fxch st(1)
fadd dword [0x477178]
fstp dword [esp + 0xcc]
fstp dword [esp + 0xd0]
call fcn.00406f80
push ebx
push ebx
lea ecx, [esp + 0xa0]
call fcn.004061f0
push ebx
lea ecx, [esp + 0x9c]
call fcn.00406840
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 0xc80000ff
call fcn.00406790
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x14], 0xff000000
call fcn.00406790
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 0xf
call fcn.00408520
mov eax, dword [eax]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa4]
call fcn.004068e0
lea ecx, [esp + 0x10]
call fcn.00407240
mov eax, dword [esp + 0xb0]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x6c]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x98]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov eax, dword [esp + 0xa4]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x40]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteFontFamily
mov eax, dword [esp + 0x8c]
push eax
mov byte [esp + 0xf0], 8
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esi + 0xb4]
sub eax, ebx
je 0x409970
dec eax
je 0x40916b
mov ecx, dword [esp + 0x4c]
push ecx
call sub.gdiplus.dll_GdipDisposeImage
lea ecx, [esp + 0x30]
call fcn.00407240
lea ecx, [esp + 0x28]
call fcn.00407240
lea ecx, [esp + 0x60]
call fcn.00407240
lea ecx, [esp + 0x5c]
call fcn.00407240
jmp 0x409a3f
lea ecx, [esp + 0x1c]
call fcn.00403250
lea ecx, [esp + 0x34]
call fcn.00403250
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
mov byte [esp + 0xf8], 0x11
call fcn.00404830
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0xfc], 0x12
call fcn.00403270
push ecx
lea edi, [esi + 0xc8]
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
mov byte [esp + 0x100], 0x13
call fcn.00403270
sub esp, 8
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
mov byte [esp + 0x10c], 0x14
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00404830
push ecx
mov ecx, esp
mov dword [esp + 0xa0], esp
push ebx
mov byte [esp + 0x110], 0x15
call fcn.00404830
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0xec8]
push 1
push eax
push ecx
push 0xffffffffffffffff
push ebx
push edx
push ecx
lea eax, [esi + 0x460]
mov ecx, esp
mov dword [esp + 0xc4], esp
push eax
mov byte [esp + 0x12c], 0x16
call fcn.00403270
push ecx
lea eax, [esi + 0xd4]
mov ecx, esp
mov dword [esp + 0xd4], esp
push eax
mov byte [esp + 0x130], 0x17
call fcn.00403270
lea eax, [esp + 0xc4]
push eax
lea ecx, [esi + 0x468]
mov byte [esp + 0x130], 0x11
call fcn.00437510
mov byte [esp + 0xec], 0x18
push eax
lea ecx, [esp + 0x20]
call fcn.00403d30
lea ecx, [esp + 0x84]
mov byte [esp + 0xec], 0x11
call fcn.00407240
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x9c], esp
push ebx
call fcn.00404830
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
mov byte [esp + 0xfc], 0x19
call fcn.00403270
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push edi
mov byte [esp + 0x100], 0x1a
call fcn.00403270
sub esp, 8
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
mov byte [esp + 0x10c], 0x1b
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00404830
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
mov byte [esp + 0x110], 0x1c
call fcn.00404830
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0xecc]
push 1
push eax
push ecx
push 0xffffffffffffffff
push 1
push edx
push ecx
lea eax, [esi + 0x460]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x12c], 0x1d
call fcn.00403270
push ecx
lea eax, [esi + 0xd4]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x130], 0x1e
call fcn.00403270
lea eax, [esp + 0xa4]
push eax
lea ecx, [esi + 0x468]
mov byte [esp + 0x130], 0x11
call fcn.00437510
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 0x1f
call fcn.00403d30
mov byte [esp + 0xec], 0x11
lea ecx, [esp + 0x64]
call fcn.00407240
lea edi, [esi + 0xee8]
mov dword [esp + 0xc], 4
jmp 0x4093b0
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
add edi, 4
dec eax
mov dword [esp + 0xc], eax
jne 0x4093b0
mov eax, dword [esi + 0x68]
test al, 4
je 0x40948e
test al, 2
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
lea edx, [esp + 0x48]
push eax
je 0x4093f0
mov ecx, dword [esi + 0xee4]
jmp 0x4093f6
mov ecx, dword [esi + 0xee8]
push ecx
mov ecx, esi
push edx
call fcn.00406af0
mov eax, dword [esi + 0xee4]
mov edi, dword [eax]
push ebx
push ebx
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [edi + 0x14]
lea eax, [esp + 0xbc]
push eax
push str.image_jpeg
call fcn.00428cd0
mov eax, dword [esi + 0xee4]
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 4]
add esp, 8
push ebx
lea ecx, [esp + 0xc0]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipSaveImageToStream
cmp eax, ebx
je 0x40944c
mov dword [edi + 8], eax
mov eax, dword [esi + 0xee4]
lea ecx, [esp + 0x38]
push ecx
push 1
xor ecx, ecx
push ecx
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0xee4]
mov dword [esi + 0xeb0], edx
mov dword [esi + 0xf98], eax
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
jmp 0x409922
test al, 2
mov edi, dword [esi + 0x98]
je 0x40949a
shl edi, 1
cmp dword [esi + 0xa4], ebx
je 0x409588
mov eax, dword [esi + 0x94]
push 0x26200a
push edi
push eax
lea ecx, [esp + 0xc8]
call fcn.00406320
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x44]
call fcn.00406860
mov edx, dword [esi + 0x94]
push edi
push edx
push ebx
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x100], 0x21
call fcn.00406940
mov eax, dword [esi + 0xee4]
mov edx, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
xor edi, edi
push edi
push eax
call dword [edx + 0x14]
lea eax, [esp + 0xac]
push eax
push str.image_jpeg
call fcn.00428cd0
mov edx, dword [esi + 0xee4]
add esp, 8
push ebx
lea ecx, [esp + 0xb0]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.00406260
mov eax, dword [esi + 0xee4]
lea ecx, [esp + 0x20]
push ecx
push 1
xor ecx, ecx
push ecx
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xee4]
push ecx
mov dword [esi + 0xeb0], edx
mov dword [esi + 0xf98], eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0xc0]
push edx
mov byte [esp + 0xf0], 0x11
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x409594
mov eax, dword [esi + 0xee4]
mov dword [esi + 0xf98], eax
cmp dword [esi + 0xeb4], ebx
jle 0x409922
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.0044a6f3
add esp, 8
test eax, eax
je 0x409922
cmp dword [esi + 0xeb4], ebx
mov dword [esp + 0x18], 1
jle 0x409922
lea edi, [esi + 0xee8]
cmp dword [esp + 0x18], 5
jge 0x409922
mov eax, dword [edi - 0x34]
inc eax
push eax
call fcn.0045c28b
mov ecx, dword [edi]
mov edx, dword [ecx]
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [edi - 0x34]
push ebx
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [edx + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x409915
mov ecx, dword [edi - 0x34]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0xc]
push edx
call fcn.0045c286
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 4
push ebx
push ebx
xor ecx, ecx
push ecx
push ecx
push eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0xb4], 0x4770f8
mov dword [esp + 0x14], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0xc]
mov dword [esp + 0xb0], edx
cmp eax, ebx
mov byte [esp + 0xec], 0x22
mov dword [esp + 0xb4], ebx
jne 0x4098d4
lea eax, [esp + 0x10]
push eax
mov ecx, edx
push ecx
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4096a5
mov dword [esp + 0xb4], eax
cmp dword [esp + 0x10], ebx
je 0x4098d4
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x9c], esp
push ebx
call fcn.00404830
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
mov byte [esp + 0xfc], 0x23
call fcn.00403270
push ecx
lea eax, [esi + 0xc8]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
mov byte [esp + 0x100], 0x24
call fcn.00403270
sub esp, 8
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
mov byte [esp + 0x10c], 0x25
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00404830
push ecx
mov ecx, esp
mov dword [esp + 0xb8], esp
push ebx
mov byte [esp + 0x110], 0x26
call fcn.00404830
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
push 1
push eax
mov eax, dword [esi + 0xecc]
push ecx
push 0xffffffffffffffff
push edx
push eax
push ecx
lea eax, [esi + 0x460]
mov ecx, esp
mov dword [esp + 0xc8], esp
push eax
mov byte [esp + 0x12c], 0x27
call fcn.00403270
push ecx
lea eax, [esi + 0xd4]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
mov byte [esp + 0x130], 0x28
call fcn.00403270
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esi + 0x468]
mov byte [esp + 0x130], 0x22
call fcn.00437510
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 0x29
call fcn.00403d30
lea ecx, [esp + 0x58]
mov byte [esp + 0xec], 0x22
call fcn.00407240
cmp dword [esi + 0xa4], ebx
je 0x4098cc
mov edx, dword [esi + 0x98]
mov eax, dword [esi + 0x94]
push 0x26200a
push edx
push eax
lea ecx, [esp + 0xc8]
call fcn.00406320
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xa4]
call fcn.00406860
mov edx, dword [esi + 0x98]
mov eax, dword [esi + 0x94]
push edx
push eax
push ebx
push ebx
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x100], 0x2b
call fcn.00406940
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
push ebx
push ebx
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x80], ebx
call dword [edx + 0x14]
lea eax, [esp + 0xcc]
push eax
push str.image_jpeg
call fcn.00428cd0
mov edx, dword [edi]
add esp, 8
push ebx
lea ecx, [esp + 0xd0]
push ecx
push edx
lea ecx, [esp + 0xc8]
call fcn.00406260
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
push 1
xor ecx, ecx
push ecx
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x40]
mov eax, dword [edi]
push ecx
mov dword [edi - 0x34], edx
mov dword [edi + 0xb4], eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0xc0]
push edx
mov byte [esp + 0xf0], 0x22
mov dword [esp + 0xc0], 0x4770e8
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x4098d4
mov eax, dword [edi]
mov dword [edi + 0xb4], eax
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edi, 4
cmp eax, ebx
je 0x4098ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0xc]
push edx
mov byte [esp + 0xf0], 0x11
mov dword [esp + 0xb0], 0x4770e8
call sub.gdiplus.dll_GdipDisposeImage
cmp dword [edi - 0x34], ebx
jg 0x4095d4
jmp 0x409922
mov eax, dword [esp + 0xc]
push eax
call fcn.0045c286
add esp, 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xec], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xec], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40997a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40997a
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xf98], eax
mov ecx, dword [esp + 0x4c]
push ecx
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xec], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4099c4
push edi
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xec], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xec], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xec], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov dword [esp + 0xec], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xdc]
call fcn.00449c1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret