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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8b96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
je case.default.0x41bb58
mov eax, dword [ebp + 0x3a]
and eax, 0xff000000
cmp eax, 0xff000000
je case.default.0x41bb58
mov ecx, dword [ebp + 0x3a]
and ecx, 0xffffff
mov dword [ebp + 0x3a], ecx
mov cx, word [ebx + 0xc]
push ecx
push 1
mov ecx, ebx
call fcn.0040c330
push eax
call fcn.004017f0
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 0xc], eax
mov edi, dword [edx]
mov dword [esp + 0x44], edi
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x44]
mov esi, dword [edx + 8]
test ecx, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
jne 0x41bb0d
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004c8740
mov ecx, dword [esp + 0x50]
add esp, 8
sub ecx, eax
sub edi, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x50]
add esi, eax
add ecx, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
mov eax, esi
mov ecx, dword [ebp + 0x48]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x41bb20
mov dword [ebp + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [ebp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x41bb39
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xffff
lea eax, [ecx - 1]
cmp eax, 0x16
ja case.default.0x41bb58
xor edx, edx
mov dl, byte [eax + 0x41cf68]
jmp dword [edx*4 + 0x41cf5c]
cmp word [ebp + 0x4c], 1
je 0x41be22
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.004c8740
mov edx, dword [ebp + 0x48]
mov ecx, eax
add edi, edx
add esp, 8
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
mov dword [esp + 0xc], eax
add eax, edx
mov edx, dword [esp + 0x4c]
push 2
sub edx, dword [ebp + 0x48]
push esi
push ecx
push eax
push edx
push eax
push edi
mov dword [ebp + 0x10], ecx
sub esp, 0x30
mov dword [esp + 0x84], edi
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], edx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x5c]
mov esi, dword [ebp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x98]
add esp, 0x50
lea edx, [ecx + esi]
mov ecx, dword [esp + 0x50]
sub ecx, esi
mov esi, dword [ebp + 0xc]
push 4
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
push esi
push ecx
push eax
push edx
push eax
mov ecx, 0xb
sub esp, 0x30
lea esi, [ebp + 0x14]
mov edi, esp
mov dword [esp + 0x68], edx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0xc]
add esp, 0x50
sub eax, ecx
mov ecx, dword [ebp + 0x10]
push 2
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
mov ecx, 0xb
sub esp, 0x30
lea esi, [ebp + 0x14]
mov edi, esp
push ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x94]
add esp, 0x50
lea esi, [ebp + 0x14]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
push eax
sub esp, 0x30
mov ecx, 0xb
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov esi, dword [ebp + 0x48]
add esp, 0x50
test esi, esi
je case.default.0x41bb58
mov eax, dword [ebp + 0x3a]
mov cx, word [ebx + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.004021e0
add esp, 8
mov ecx, ebx
push eax
call fcn.0041cf80
push eax
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
push eax
mov eax, dword [ebx + 0x10]
push eax
call edi
push 5
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call edi
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x41bd33
fild dword [ebp + 0x10]
sub esp, 8
lea edx, [esp + 0xe4]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str._g_setlinewidth_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x128]
add esp, 0x10
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0044dba0
sub esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push 0x2bf20
push 0x15f90
push esi
push ecx
push edx
mov ecx, ebx
call fcn.004cf970
mov eax, dword [ebx + 0x128]
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x546]
lea eax, [eax + eax*4 + 0x384]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
shl ecx, 3
shl edx, 3
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push esi
push eax
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push 0
push 0x41eb0
push esi
push edx
push eax
mov ecx, ebx
call fcn.004cf970
mov eax, dword [ebx + 0x128]
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x1c2]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
shl ecx, 3
shl edx, 3
push ecx
mov ecx, dword [esp + 0x14]
push edx
push esi
push eax
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10]
push edx
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
push ecx
push edx
call fcn.004c8740
mov ecx, dword [esp + 0x14]
add esp, 8
cmp eax, ecx
jg 0x41be45
mov dword [ebp + 0xc], 2
mov esi, dword [ebp + 0xc]
push esi
push eax
mov ecx, dword [esp + 0x50]
sub esp, 0x10
mov edx, dword [esp + 0x64]
mov eax, esp
sub esp, 0x30
lea esi, [ebp + 0x14]
mov dword [eax], edi
mov edi, esp
push ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004d2710
add esp, 0x4c
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48
mov eax, 1
cmp word [ebp + 0x4c], ax
je 0x41c15e
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.004c8740
mov edx, dword [ebp + 0x48]
mov ecx, eax
add edi, edx
add esp, 8
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
mov dword [esp + 0xc], eax
add eax, edx
mov edx, dword [esp + 0x4c]
push 2
sub edx, dword [ebp + 0x48]
push esi
push ecx
push eax
push edx
push eax
push edi
mov dword [ebp + 0x10], ecx
sub esp, 0x30
mov dword [esp + 0x84], edi
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], edx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x5c]
mov esi, dword [ebp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x98]
add esp, 0x50
lea edx, [ecx + esi]
mov ecx, dword [esp + 0x50]
sub ecx, esi
mov esi, dword [ebp + 0xc]
push 4
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
push esi
push ecx
push eax
push edx
push eax
mov ecx, 0xb
sub esp, 0x30
lea esi, [ebp + 0x14]
mov edi, esp
mov dword [esp + 0x68], edx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0xc]
add esp, 0x50
sub eax, ecx
mov ecx, dword [ebp + 0x10]
push 2
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
mov ecx, 0xb
sub esp, 0x30
lea esi, [ebp + 0x14]
mov edi, esp
push ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x94]
add esp, 0x50
lea esi, [ebp + 0x14]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
push eax
sub esp, 0x30
mov ecx, 0xb
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004d04b0
mov esi, dword [ebp + 0x48]
add esp, 0x50
test esi, esi
je case.default.0x41bb58
mov eax, dword [ebp + 0x3a]
mov cx, word [ebx + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.004021e0
add esp, 8
mov ecx, ebx
push eax
call fcn.0041cf80
push eax
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
push eax
mov eax, dword [ebx + 0x10]
push eax
call edi
push 5
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call edi
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x41c06f
fild dword [ebp + 0x10]
sub esp, 8
lea edx, [esp + 0xe4]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str._g_setlinewidth_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x128]
add esp, 0x10
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0044dba0
sub esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push 0x2bf20
push 0x15f90
push esi
push ecx
push edx
mov ecx, ebx
call fcn.004cf970
mov eax, dword [ebx + 0x128]
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x546]
lea eax, [eax + eax*4 + 0x384]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
shl ecx, 3
shl edx, 3
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push esi
push eax
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push 0
push 0x41eb0
push esi
push edx
push eax
mov ecx, ebx
call fcn.004cf970
mov eax, dword [ebx + 0x128]
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x1c2]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
shl ecx, 3
shl edx, 3
push ecx
mov ecx, dword [esp + 0x14]
push edx
push esi
push eax
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
push edx
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48
mov dword [ebp + 0xc], eax
mov esi, eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
and esi, 0xffff
push ecx
push edx
lea eax, [esi + esi*2]
lea ecx, [esi + eax*4]
lea eax, [esp + 0x148]
lea edx, [ecx*2 + 0x5072a0]
push edx
push eax
call fcn.004c88b0
add esp, 0x10
test ax, ax
jbe case.default.0x41bb58
lea esi, [esp + 0x140]
and eax, 0xffff
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
jmp 0x41c1b7
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x24], ecx
neg eax
push eax
lea ecx, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edx
call fcn.0041cf90
mov edx, dword [esp + 0x40]
mov edi, dword [esi + 4]
mov esi, dword [ebp + 0x48]
add esp, 0xc
mov eax, dword [edx]
mov dword [esp + 0x10], edi
sub esi, eax
mov dword [esp + 0x1c], esi
jns 0x41c20a
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
cmp word [ebp + 0x4c], 1
je 0x41cbc6
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x41c659
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
add eax, esi
mov dword [esp + 0x18], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004023a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00402360
cmp word [ebx + 0x26a], 0
jne 0x41c28f
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0xdc]
push str.save_newpath_n
push eax
call edi
add esp, 8
lea ecx, [esp + 0xdc]
push eax
push ecx
mov ecx, dword [ebx + 0x128]
call fcn.0044dba0
jmp 0x41c295
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
fild dword [esp + 0x18]
sub esp, 8
lea edx, [esp + 0xe4]
sub esp, 8
fidiv dword [ebx + 0x264]
fstp qword [esp + 8]
fild dword [esp + 0x24]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str._g__g_m_n
push edx
call edi
mov ecx, dword [ebx + 0x128]
add esp, 0x18
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0044dba0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub ecx, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
add edx, esi
push eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.004023a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00402360
fild dword [ebx + 0x240]
fild dword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0xe4]
sub esp, 8
fstp qword [esp + 0x9c]
fild dword [ebx + 0x260]
sub esp, 8
sub esp, 8
fstp qword [esp + 0x74]
sub esp, 8
fld st(0)
fmul qword [0x4dcae0]
fstp qword [esp + 0x20]
fmul qword [0x4dc290]
fsubr qword [0x4dcad8]
fstp qword [esp + 0x18]
fld qword [esp + 0xb4]
fdiv qword [esp + 0x7c]
fstp qword [esp + 0x10]
fild dword [esp + 0x40]
fidiv dword [ebx + 0x264]
fstp qword [esp + 8]
fild dword [esp + 0x3c]
fdiv qword [esp + 0x7c]
fstp qword [esp]
push str._g__g__g__g__g_a_n
push ecx
call edi
mov ecx, dword [ebx + 0x128]
add esp, 0x30
lea edx, [esp + 0xdc]
push eax
push edx
call fcn.0044dba0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
sub ecx, esi
lea edx, [esp + 0x14]
sub eax, esi
mov dword [esp + 0x18], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004023a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00402360
fild dword [ebx + 0x240]
fild dword [ebx + 0x264]
sub esp, 8
lea eax, [esp + 0xe4]
sub esp, 8
fstp qword [esp + 0x64]
sub esp, 8
fld st(0)
fmul qword [0x4dc290]
sub esp, 8
sub esp, 8
fsubr qword [0x4dcad0]
fstp qword [esp + 0x20]
fmul qword [0x4dcae0]
fstp qword [esp + 0x18]
fld qword [esp + 0xb4]
fdiv qword [esp + 0x7c]
fstp qword [esp + 0x10]
fild dword [esp + 0x40]
fdiv qword [esp + 0x7c]
fstp qword [esp + 8]
fild dword [esp + 0x3c]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str._g__g__g__g__g_a_n
push eax
call edi
add esp, 0x30
lea ecx, [esp + 0xdc]
push eax
push ecx
mov ecx, dword [ebx + 0x128]
call fcn.0044dba0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
add edx, esi
sub eax, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.004023a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.00402360
fild dword [ebx + 0x240]
sub esp, 8
sub esp, 8
fmul qword [0x4dc290]
fild dword [ebx + 0x260]
sub esp, 8
sub esp, 8
fstp qword [esp + 0x74]
fld qword [0x4dcac8]
fsub st(1)
fstp qword [esp + 0x18]
fld qword [0x4dcad0]
fsub st(1)
fstp qword [esp + 0x10]
fstp st(0)
fld qword [esp + 0xac]
fdiv qword [esp + 0x74]
fstp qword [esp + 8]
fild dword [esp + 0x38]
fidiv dword [ebx + 0x264]
fstp qword [esp]
fild dword [esp + 0x34]
fdiv qword [esp + 0x74]
sub esp, 8
lea edx, [esp + 0x104]
fstp qword [esp]
push str._g__g__g__g__g_a_n
push edx
call edi
mov ecx, dword [ebx + 0x128]
add esp, 0x30
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0044dba0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add ecx, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
add edx, esi
push eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.004023a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00402360
fild dword [ebx + 0x240]
sub esp, 8
lea ecx, [esp + 0xe4]
sub esp, 8
fmul qword [0x4dc290]
fild dword [ebx + 0x260]
sub esp, 8
sub esp, 8
fstp qword [esp + 0x74]
fld qword [0x4dcad8]
fsub st(1)
sub esp, 8
fstp qword [esp + 0x20]
fld qword [0x4dcac8]
fsub st(1)
fstp qword [esp + 0x18]
fstp st(0)
fld qword [esp + 0xb4]
fdiv qword [esp + 0x7c]
fstp qword [esp + 0x10]
fild dword [esp + 0x40]
fidiv dword [ebx + 0x264]
fstp qword [esp + 8]
fild dword [esp + 0x3c]
fdiv qword [esp + 0x7c]
fstp qword [esp]
push str._g__g__g__g__g_a_n
push ecx
call edi
mov ecx, dword [ebx + 0x128]
add esp, 0x30
lea edx, [esp + 0xdc]
push eax
push edx
call fcn.0044dba0
cmp word [ebx + 0x26a], 0
jne 0x41cf2a
sub esp, 0x30
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004cf6f0
mov eax, dword [esp + 0x44]
add esp, 0x2c
lea edx, [esp + 0xe4]
lea ecx, [eax + eax]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str.closepath_clip__g_setlinewidth_stroke_restore_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x128]
add esp, 0x10
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0044dba0
jmp 0x41cf2a
cmp edi, dword [esp + 0xc]
jg 0x41c87b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0x2bf20
push 0x15f90
lea eax, [ecx + esi]
lea ecx, [edx + esi]
push esi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0xa8], eax
call fcn.004cf970
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
push 1
sar eax, 1
mov dword [esp + 0x14], eax
sub esp, 0x30
lea edx, [eax + ecx]
mov eax, dword [esp + 0x58]
add eax, esi
mov ecx, 0xb
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x60]
sub eax, esi
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xb8]
push ecx
push edx
push eax
push edx
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.004cf800
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x128]
sub ecx, esi
neg eax
sbb eax, eax
mov dword [esp + 0x98], ecx
and eax, 0xb4
lea edx, [eax + eax*4 + 0x546]
lea eax, [eax + eax*4 + 0x384]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
shl edx, 3
shl eax, 3
push edx
push eax
push esi
push ecx
mov ecx, dword [esp + 0xa4]
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add edx, esi
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x10]
push 1
sub eax, esi
add edx, ecx
sub esp, 0x30
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
movsw word es:[edi], word [esi]
push ecx
push edx
push eax
push edx
mov edx, dword [esp + 0xc0]
push edx
mov ecx, ebx
call fcn.004cf800
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x98]
push 0x57e40
push 0x41eb0
sub eax, esi
push esi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0xa8], eax
call fcn.004cf970
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add edx, esi
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x2c]
push 1
sub eax, ecx
sub esp, 0x30
sub edx, esi
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xb8]
push ecx
push eax
push edx
push eax
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.004cf800
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x128]
add edx, esi
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x1c2]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
shl ecx, 3
shl eax, 3
push ecx
mov ecx, dword [esp + 0x98]
push eax
push esi
push edx
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add edx, esi
push 1
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x2c]
sub edx, esi
mov esi, dword [esp + 0x14]
sub eax, esi
sub esp, 0x30
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xb4]
push eax
push ecx
push eax
push edx
mov ecx, ebx
call fcn.004cf800
jmp 0x41cf2a
push 8
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebx + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edx
call edi
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x3a]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
mov dword [esp + 0x44], eax
call edi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ecx
add eax, ecx
lea ecx, [esp + 0x5c]
push 0
mov dword [esp + 0x60], edx
push ecx
add edx, esi
push 4
push ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call fcn.004cf520
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov eax, ecx
push 0
sub eax, edx
mov edx, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x88], eax
mov eax, edx
mov dword [esp + 0x84], edx
sub eax, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x80], ecx
push eax
push 4
push ebx
call fcn.004cf520
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
lea edx, [ecx + esi]
mov ecx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x4c]
sub ecx, esi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ecx
lea eax, [esp + 0x7c]
push 0
push eax
push 4
push ebx
call fcn.004cf520
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x8c], ecx
lea eax, [ecx + edx]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x8c]
sub eax, esi
push 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x58]
push ecx
add edx, esi
push 4
mov dword [esp + 0x9c], eax
push ebx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa0], edx
call fcn.004cf520
mov edx, dword [esp + 0x70]
mov eax, dword [ebx + 0x10]
add esp, 0x40
push edx
push eax
call edi
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10]
push edx
push eax
call edi
test esi, esi
je 0x41cf2a
mov eax, dword [ebx + 0x128]
test eax, eax
jne 0x41cf2a
cmp word [ebx + 0x26a], 0
jne 0x41cf2a
mov ecx, dword [ebp + 0x3a]
mov dx, word [ebx + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.004021e0
add esp, 8
mov ecx, ebx
push eax
call fcn.0041cf80
push eax
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
mov dword [esp + 0x48], eax
call edi
push 5
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebx + 0x10]
push eax
push edx
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push 0x2bf20
push 0x15f90
push esi
lea ecx, [eax + esi]
lea eax, [edx + esi]
push eax
mov dword [esp + 0xac], ecx
push ecx
mov ecx, ebx
call fcn.004cf970
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x128]
sub ecx, esi
neg eax
sbb eax, eax
mov dword [esp + 0xa0], ecx
and eax, 0xb4
lea edx, [eax + eax*4 + 0x546]
lea eax, [eax + eax*4 + 0x384]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
shl edx, 3
shl eax, 3
push edx
push eax
push esi
push ecx
mov ecx, dword [esp + 0xac]
push ecx
mov ecx, ebx
call fcn.004cf970
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xa0]
push 0x57e40
push 0x41eb0
sub eax, esi
push esi
push edx
push eax
mov ecx, ebx
mov dword [esp + 0xb0], eax
call fcn.004cf970
mov eax, dword [esp + 0x24]
lea edx, [eax + esi]
mov eax, dword [ebx + 0x128]
neg eax
sbb eax, eax
and eax, 0xb4
lea ecx, [eax + eax*4 + 0x1c2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
lea eax, [eax + eax*4]
push ecx
mov ecx, dword [esp + 0xa0]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push esi
push edx
push ecx
mov ecx, ebx
call fcn.004cf970
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
push edx
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x40]
jmp 0x41cf23
mov ecx, dword [ebp + 0x3a]
mov dx, word [ebx + 0xc]
push ecx
push edx
push edi
call fcn.004021e0
add esp, 8
mov ecx, ebx
push eax
call fcn.0041cf80
push eax
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x8c], eax
push eax
mov eax, dword [ebx + 0x10]
push eax
call esi
push 5
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call esi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
cmp word [ebx + 0x26a], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], edx
jne 0x41cd37
mov edx, dword [ebx + 0x128]
test edx, edx
jne 0x41cd37
lea ecx, [esp + 0xb4]
call fcn.0041ba00
lea ecx, [esp + 0xc8]
mov dword [esp + 0x260], 0
call fcn.0041ecd0
mov ecx, dword [esp + 0x20]
mov eax, edi
cdq
sub eax, edx
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x260], 1
sar eax, 1
add ecx, eax
add edi, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
sub ecx, eax
sub edx, eax
mov dword [esp + 0x28], ecx
lea eax, [esp + 0xc8]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xb4]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
mov dword [esp + 0x34], edi
call fcn.0041b860
add esp, 0x10
lea ecx, [esp + 0xb4]
call fcn.00477de0
push eax
lea ecx, [esp + 0xcc]
call fcn.004d5160
push eax
lea ecx, [esp + 0xbc]
call fcn.004d5160
push eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.004d4ef0
add esp, 0x10
lea ecx, [esp + 0xc8]
mov byte [esp + 0x260], 0
call fcn.0041ee40
lea ecx, [esp + 0xb4]
mov dword [esp + 0x260], 0xffffffff
call fcn.0041ba20
jmp 0x41cf06
mov edx, dword [esp + 0x28]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
lea ecx, [esp + 0x84]
cdq
sub eax, edx
push ecx
sar eax, 1
mov ecx, ebx
mov dword [esp + 0x8c], eax
call fcn.004023a0
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
mov ecx, ebx
call fcn.00402360
mov esi, dword [ebp + 0x44]
test esi, esi
je 0x41cda2
test edi, edi
je 0x41cda2
cmp word [ebx + 0x26a], 0
jne 0x41cda2
mov ecx, edi
jmp 0x41cda4
xor ecx, ecx
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [esp + 0x3c], eax
je 0x41cdd1
test edi, edi
je 0x41cdd1
cmp word [ebx + 0x26a], 0
je 0x41cdd3
xor edi, edi
movsx edx, word [ebx + 0xc]
fild dword [ebx + 0x264]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xa8]
sub esp, 8
fild dword [esp + 0x38]
fild dword [ebx + 0x260]
sub eax, edx
sub esp, 8
sub eax, edi
sub esp, 8
fstp qword [esp + 0x6c]
cdq
sub eax, edx
sub esp, 8
sar eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x240]
fild dword [esp + 0x50]
neg eax
mov dword [esp + 0x50], eax
sub esp, 8
fdiv st(2)
lea ecx, [esp + 0x180]
fmul st(1)
fmul qword [0x4dc290]
fstp qword [esp + 0x20]
fild dword [esp + 0x64]
fdiv qword [esp + 0x7c]
fmul st(1)
fmul qword [0x4dc290]
fstp qword [esp + 0x18]
fstp st(0)
fild dword [esp + 0x58]
fmul qword [0x4dc290]
fstp qword [esp + 0x10]
fild dword [esp + 0xb0]
fdiv st(1)
fstp qword [esp + 8]
fstp st(0)
fild dword [esp + 0xac]
fdiv qword [esp + 0x7c]
fstp qword [esp]
push str.newpath_n_g__g__g__g__g_0_360_EllipticalArc_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x128]
add esp, 0x30
lea edx, [esp + 0x158]
push eax
push edx
call fcn.0044dba0
sub esp, 0x30
mov ecx, 0xb
lea esi, [ebp + 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004cf6f0
add esp, 0x34
cmp word [ebx + 0x26a], 0
jne 0x41cf00
fild dword [esp + 0x10]
sub esp, 8
lea eax, [esp + 0x160]
fidiv dword [ebx + 0x260]
fstp qword [esp]
push str.closepath_n_g_setlinewidth_r_nstroke_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x158]
push eax
push ecx
mov ecx, dword [ebx + 0x128]
call fcn.0044dba0
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10]
push edx
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ecx, 8
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jne 0x41c1af
mov ecx, dword [esp + 0x258]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x48