Function at 0x40451d
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42d718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
xor ebp, ebp
xor edx, edx
xor ecx, ecx
cmp eax, ebp
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x94], eax
jle 0x404572
lea edi, [esi + 0xe4]
jmp 0x404550
mov ebx, dword [esi + 0x90]
sar ebx, cl
test bl, 1
je 0x404562
cmp dword [edi], ebp
je 0x404562
inc edx
inc ecx
add edi, 4
cmp ecx, eax
jl 0x404550
cmp edx, ebp
mov dword [esp + 0x30], edx
jne 0x404579
xor eax, eax
jmp 0x4054ea
cmp edx, 4
mov ecx, 4
jg 0x404585
mov ecx, edx
lea eax, [edx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp ecx, 1
mov dword [esp + 0x98], eax
jne 0x4045a6
mov dword [esi + 0x78], 0xdc
jmp 0x4045b2
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, 0x3b
mov dword [esi + 0x78], ecx
cmp eax, 1
jne 0x4045c0
mov dword [esi + 0x7c], 0xdd
jmp 0x4045cc
imul eax, eax, 0xcf
add eax, 0x14
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x1ac]
cmp eax, ebp
je 0x4045e3
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x1ac], ebp
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x1ac], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x74], eax
imul eax, ecx
push ebp
push ebp
shl eax, 2
lea edx, [esp + 0x104]
push edx
mov dword [esp + 0x8c], eax
push ebp
lea eax, [esp + 0x7c]
push eax
push edi
mov dword [esp + 0x84], 0x28
mov dword [esp + 0x88], ecx
mov word [esp + 0x90], 1
mov word [esp + 0x92], 0x20
mov dword [esp + 0x94], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
xor ecx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
je 0x4046cb
mov edx, dword [esi + 0x1ac]
push ebx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebp
push ebx
call ebp
xor ebp, ebp
push edi
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esi + 0x1ac]
push 8
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x4054e5
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x18]
mov dword [ebx + 4], eax
cmp dword [esp + 0x30], 1
mov dword [ebx], ecx
jne 0x404776
mov edi, dword [esi + 0xb4]
cmp edi, ebp
je 0x40498f
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
xor ebp, ebp
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x404736
mov dword [edi + 8], eax
mov edi, dword [esi + 0xb4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x404755
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xb4]
push eax
push ecx
push ebp
push ebp
push edx
push ebx
call fcn.00415d80
add esp, 0x18
jmp 0x40498f
lea ebp, [esi + 0xc0]
mov edx, 1
xor eax, eax
mov ecx, ebp
test edx, edx
je 0x40498f
cmp dword [ecx], 0
jne 0x404794
xor edx, edx
inc eax
add ecx, 4
cmp eax, 9
jl 0x404785
test edx, edx
je 0x40498f
mov edi, dword [ebp]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4047c3
mov dword [edi + 8], eax
mov edi, dword [ebp]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4047df
mov dword [edi + 8], eax
mov edi, dword [esi + 0xe0]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4047fe
mov dword [edi + 8], eax
mov edi, dword [esi + 0xe0]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40481d
mov dword [edi + 8], eax
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
push edi
push ebx
push 0
push 0
push edx
push eax
call fcn.00415d80
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x2c]
push edi
push ebp
push 0
sub ecx, ebp
push ecx
push edx
push eax
call fcn.00415d80
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0xd8]
push eax
push ebx
sub ecx, eax
mov eax, dword [esp + 0x4c]
push ecx
push 0
push edx
push eax
call fcn.00415d80
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
add esp, 0x48
push eax
push ebp
sub ecx, eax
mov eax, dword [esi + 0xe0]
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ebp
push edx
push eax
push ecx
call fcn.00415d80
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0x1ac]
push 0xff
push edi
sub edx, ebp
sub edx, ebx
push edx
mov edx, dword [esp + 0x38]
push 0
push ebx
push eax
push ecx
push edx
call fcn.00415890
mov eax, dword [esi + 0x7c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esi + 0x1ac]
push 0xff
sub eax, ecx
mov ecx, dword [esi + 0xcc]
sub eax, edi
push eax
mov eax, dword [esp + 0x54]
push ebx
push edi
push 0
push ecx
push edx
push eax
call fcn.00415890
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 0xd0]
add esp, 0x58
sub ecx, edx
mov edx, dword [esi + 0x78]
push 0xff
sub ecx, edi
push ecx
mov ecx, dword [esi + 0x1ac]
sub edx, ebp
sub edx, ebx
push edx
mov edx, dword [esp + 0x20]
push edi
push ebx
push eax
push ecx
push edx
call fcn.00415890
mov eax, dword [esi + 0x7c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x78]
push 0xff
sub eax, edx
mov edx, dword [esi + 0xd4]
sub eax, edi
push eax
mov eax, dword [esi + 0x1ac]
push ebp
push edi
mov edi, dword [esp + 0x44]
sub ecx, ebp
push ecx
push edx
push eax
push edi
call fcn.00415890
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0x7c]
add esp, 0x40
push 0xff
push eax
sub ecx, ebp
sub ecx, ebx
push ecx
mov ecx, dword [esi + 0x1ac]
sub edx, eax
mov eax, dword [esi + 0xdc]
push edx
push ebx
push eax
push ecx
push edi
call fcn.00415890
add esp, 0x20
mov ebx, edi
mov edi, dword [esi + 0x144]
xor ebp, ebp
cmp edi, ebp
je 0x404a07
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x4049b4
mov dword [edi + 8], eax
mov edi, dword [esi + 0x144]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x4049d3
mov dword [edi + 8], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x144]
sub eax, 0x3c
cmp ecx, ebp
je 0x4049e8
mov ecx, dword [ecx + 4]
jmp 0x4049ea
xor ecx, ecx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push 0xe
push eax
mov eax, dword [ebx]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, ebp
je 0x404a07
mov dword [ebx + 4], eax
cmp dword [esp + 0x30], 1
jne 0x404ad3
fld dword [esi + 0x98]
fcomp dword [0x430be8]
fnstsw ax
test ah, 1
jne 0x404ad3
mov edi, dword [esi + 0xb8]
cmp edi, ebp
je 0x404ad3
cmp dword [esi + 0xbc], ebp
je 0x404ad3
mov edx, dword [edi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x404a5c
mov dword [edi + 8], eax
mov edi, dword [esi + 0xb8]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x404a7b
mov dword [edi + 8], eax
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xb8]
push edi
push edx
push 0xce
push 9
push eax
push ebx
call fcn.00415d80
fild dword [esp + 0x3c]
push 0xff
push edi
fmul dword [esi + 0x98]
fadd dword [0x430be4]
call fcn.00418dc8
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0x1ac]
push eax
push 0xce
push 9
push ecx
push edx
push ebx
call fcn.00415890
add esp, 0x38
mov eax, dword [ebx]
push 5
push eax
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebp
je 0x404ae4
mov dword [ebx + 4], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
lea esp, [esp]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x24]
sar edx, cl
test dl, 1
je 0x4054bb
mov eax, dword [esp + 0x38]
mov esi, dword [eax + ecx*4 + 0xe4]
test esi, esi
je 0x4054bb
cmp dword [esp + 0x30], 1
jne 0x404b35
mov dword [esp + 0x34], 0x2b
mov dword [esp + 0x2c], 0x14
jmp 0x404b76
mov eax, dword [esp + 0x18]
mov ecx, eax
and ecx, 0x80000003
jns 0x404b48
dec ecx
or ecx, 0xfffffffc
inc ecx
cdq
and edx, 3
add edx, eax
mov eax, dword [esp + 0x98]
sar edx, 2
sub eax, edx
imul eax, eax, 0xcf
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, 0x2b
sub eax, 0xb5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push 0x82
push 0x82
push eax
push ecx
push esi
push edx
call fcn.00415d80
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x1a8]
mov esi, dword [esp + 0x3c]
add esp, 0x18
neg ecx
sbb ecx, ecx
and ecx, esi
mov esi, dword [eax + ecx*4 + 0x148]
lea eax, [eax + ecx*4 + 0x148]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0xc]
xor ebp, ebp
cmp ecx, ebp
jl 0x404be2
cmp eax, dword [esi]
jne 0x404be2
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x404c16
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
cmp eax, ebp
je 0x405503
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [eax + 0x10]
mov dword [esp + 0x100], ebx
mov eax, dword [esp + 0x30]
add ebx, 0xfffffff0
xor esi, esi
push 1
cmp eax, 1
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x114], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
push 0x41900000
jne 0x405075
push 4
lea ecx, [esp + 0x5c]
push ecx
push ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 0x400
mov dword [esp + 0x70], 0x20
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
cmp ecx, esi
lea edx, [ebx + 0xc]
jl 0x404cb1
cmp eax, dword [ebx]
jne 0x404cb1
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x404ce5
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
cmp eax, esi
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
add eax, 0x10
push edi
mov dword [ebp], eax
call fcn.00416070
fld dword [esp + 0x60]
fcomp dword [0x430be0]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x404d6b
push 0
push 0
push 0x41900000
push 4
lea eax, [esp + 0xcc]
push eax
push ecx
mov dword [esp + 0x38], esp
mov esi, esp
push ebx
mov dword [esp + 0xd8], 0x12
mov dword [esp + 0xdc], 0x99
mov dword [esp + 0xe0], 0xb4
mov dword [esp + 0xe4], 0x20
call fcn.00403f70
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00416070
add esp, 0x1c
jmp 0x405495
mov dword [esp + 0x58], 0x400
mov ebp, 0x90
jmp 0x404d80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
push 1
lea ecx, [esp + 0x40]
push ecx
push 0x41900000
push 1
lea edx, [esp + 0x5c]
push edx
push ecx
mov dword [esp + 0x6c], ebp
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x40], esp
call dword [eax + 0x10]
mov edx, dword [ebx + 0xc]
test edx, edx
lea ecx, [ebx + 0xc]
jl 0x404dce
cmp eax, dword [ebx]
jne 0x404dce
mov eax, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404e02
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add eax, 0x10
push edi
mov dword [ecx], eax
call fcn.00416070
fld dword [esp + 0x64]
fcomp dword [0x430bdc]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x404e98
push 0
lea eax, [ebp - 0x90]
cdq
sub eax, edx
push 0
sar eax, 1
push 0x41900000
mov edx, 0x24
sub edx, eax
push 1
lea eax, [esp + 0xfc]
push eax
push ecx
mov dword [esp + 0x38], esp
mov esi, esp
push ebx
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], 0x96
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], 0x36
call fcn.00403f70
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00416070
add esp, 0x1c
mov dword [esp + 0x10], 1
add ebp, 8
cmp ebp, 0xc8
jle 0x404d80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
mov dword [esp + 0x58], 0x400
mov dword [esp + 0x2c], 0x11
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
mov ebp, 0xac
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40505e
fild dword [esp + 0x2c]
push 1
lea ecx, [esp + 0x40]
push ecx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
push edx
push 4
lea eax, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x6c], ebp
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x40], esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
lea edx, [ebx + 0xc]
jl 0x404f2a
cmp eax, dword [ebx]
jne 0x404f2a
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x404f5e
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
add eax, 0x10
push edx
mov dword [ecx], eax
call fcn.00416070
fld dword [esp + 0x64]
fcomp dword [0x430bd8]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x40504f
push 0
lea eax, [ebp - 0xac]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
push 0
push edx
sar eax, 1
mov ecx, 0x16
sub ecx, eax
push 4
lea eax, [esp + 0xac]
push eax
push ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], 0x96
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], 0x38
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x40], esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
lea edx, [ebx + 0xc]
jl 0x404ffd
cmp eax, dword [ebx]
jne 0x404ffd
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x405031
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
add eax, 0x10
push edx
mov dword [ecx], eax
call fcn.00416070
add esp, 0x1c
mov dword [esp + 0x10], 1
add ebp, 8
cmp ebp, 0xcc
jle 0x404ed4
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, 0xa
mov dword [esp + 0x2c], eax
jge 0x404ec3
jmp 0x405495
push 1
lea ecx, [esp + 0x6c]
push ecx
push ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x400
mov dword [esp + 0x80], 0x20
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
cmp ecx, esi
lea edx, [ebx + 0xc]
jl 0x4050c0
cmp eax, dword [ebx]
jne 0x4050c0
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4050f4
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
cmp eax, esi
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
add eax, 0x10
push edi
mov dword [ebp], eax
call fcn.00416070
fld dword [esp + 0x60]
fcomp dword [0x430bd4]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x405183
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0x41900000
push 1
lea edx, [esp + 0xbc]
add ecx, 0x88
push edx
push ecx
add eax, 0xfffffff1
mov dword [esp + 0x38], esp
mov esi, esp
push ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], 0xa0
mov dword [esp + 0xd4], 0x20
call fcn.00403f70
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00416070
add esp, 0x1c
jmp 0x405495
mov dword [esp + 0x68], 0x400
mov ebp, 0x88
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
push 1
lea eax, [esp + 0x40]
push eax
push 0x41900000
push 1
lea ecx, [esp + 0x6c]
push ecx
push ecx
mov dword [esp + 0x7c], ebp
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x40], esp
call dword [edx + 0x10]
mov edx, dword [ebx + 0xc]
test edx, edx
lea ecx, [ebx + 0xc]
jl 0x4051de
cmp eax, dword [ebx]
jne 0x4051de
mov eax, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405212
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add eax, 0x10
push edi
mov dword [ecx], eax
call fcn.00416070
fld dword [esp + 0x64]
fcomp dword [0x430bdc]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x4052af
push 0
push 0
lea eax, [ebp - 0x88]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
push 0x41900000
sar eax, 1
push 1
lea ecx, [esp + 0xdc]
sub edx, eax
mov eax, dword [esp + 0x3c]
push ecx
push ecx
sub edx, 3
add eax, 0x88
mov dword [esp + 0x38], esp
mov esi, esp
push ebx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xf4], 0x36
call fcn.00403f70
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00416070
add esp, 0x1c
mov dword [esp + 0x10], 1
add ebp, 8
cmp ebp, 0xa0
jle 0x405190
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
mov dword [esp + 0x68], 0x400
mov dword [esp + 0x1c], 0x11
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405495
mov ebp, 0x90
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405483
fild dword [esp + 0x1c]
push 1
lea edx, [esp + 0x40]
push edx
fstp dword [esp + 0x30]
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x30]
push eax
push 4
push ecx
push ecx
mov dword [esp + 0x7c], ebp
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x38], esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
lea edx, [ebx + 0xc]
jl 0x405347
cmp eax, dword [ebx]
jne 0x405347
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40537b
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
add eax, 0x10
push edx
mov dword [ecx], eax
call fcn.00416070
fld dword [esp + 0x64]
fcomp dword [0x430bdc]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jp 0x405474
mov ecx, dword [esp + 0x34]
lea eax, [ebp - 0x90]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
push 0
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x2c]
push 0
sub ecx, 7
push eax
mov dword [esp + 0xe8], ecx
push 4
lea ecx, [esp + 0xec]
add edx, 0x88
push ecx
push ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x100], 0x36
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x38], esp
mov dword [esp + 0x38], esp
call dword [edx + 0x10]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
lea edx, [ebx + 0xc]
jl 0x405422
cmp eax, dword [ebx]
jne 0x405422
mov eax, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x405456
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405503
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
add eax, 0x10
push edx
mov dword [ecx], eax
call fcn.00416070
add esp, 0x1c
mov dword [esp + 0x10], 1
add ebp, 8
cmp ebp, 0xa0
jle 0x4052f1
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jge 0x4052e0
inc dword [esp + 0x18]
mov dword [esp + 0x10c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4054bb
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x94]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x404af0
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov eax, 1
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret
jmp fcn.00403a50